Re: Catalina and log4j

2001-04-22 Thread Ceki Gülcü
At 15:51 21.04.2001 -0700, you wrote: >On Sat, 21 Apr 2001, Ceki [iso-8859-1] Gülcü wrote: > >> >> Hello, >> >> I am toying with the idea of migrating catalina logging to log4j. Let >> me begin by saying that I am far from being familiar with catalina >> internals but I am getting there slowly

Re: Catalina and log4j

2001-04-22 Thread Ceki Gülcü
At 16:37 21.04.2001 -0700, you wrote: >On Sat, 21 Apr 2001, Scott Sanders wrote: > >> What he meant was: >> >>if(log.isDebugEnabled()) >> log.debug("Processing " + errorPage); >> >> ;-) > >I can certainly see that, but it sure blows the "shorter code" advantage >that was touted :-).

Re: Catalina and log4j

2001-04-22 Thread Craig R. McClanahan
On Sat, 21 Apr 2001, Glenn Nielsen wrote: > Ceki Gülcü wrote: > >> One important point to remember is that each >> webapp classloader could load a fresh copy of log4j so that each >> webapp has its own logging universe. > > > This would significantly increase the memory footprint required for

Re: Catalina and log4j

2001-04-22 Thread Craig R. McClanahan
On Sat, 21 Apr 2001, Scott Sanders wrote: > What he meant was: > >if(log.isDebugEnabled()) > log.debug("Processing " + errorPage); > > ;-) I can certainly see that, but it sure blows the "shorter code" advantage that was touted :-). It also seems a little redundant -- if I want to

Re: Catalina and log4j

2001-04-22 Thread Ceki Gülcü
At 17:45 21.04.2001 -0700, you wrote: >My two cents as a Log4J User. > >I use Log4J in my servlets and I think it great. Logging has never been so easy. >One issue though, the Configurator class holds it data in a Static variable so >two servlets inside the same JVM will each over write the others

Re: Catalina and log4j

2001-04-22 Thread Scott Sanders
>> - No more need to do >> >> if(debug > 1) >> log("Some message"); >> >> instead one would write >> >> log.debug("Some message"); >> >> where log is an instance of org.apache.log4j.Category. >> > > > Although not evident in your example above, there is a potentially > substantial p

Re: Catalina and log4j

2001-04-22 Thread Glenn Nielsen
Ceki Gülcü wrote: > > > One important point to remember is that each webapp classloader could load a fresh >copy of log4j so that each webapp has its own logging universe. > This would significantly increase the memory footprint required for logging in the JVM. I would prefer that log4j be gl

Re: Catalina and log4j

2001-04-22 Thread Scott Sanders
>> One fairly simple way to integrate Log4J would be to write an >> implementation of org.apache.catalina.Logger that uses it. This will >> undoubtedly not suffice for a final solution, because it does not expose >> all of the logging flexibility that Log4J provides. But it might serve as >> a s

Re: Catalina and log4j

2001-04-22 Thread Craig R. McClanahan
On Sat, 21 Apr 2001, Glenn Nielsen wrote: > Ceki, > > This is welcome news! > > It isn't clear to me whether the standard servlet API logging methods > could use log4j behind the scense to do logging. This would be very > nice, especially if you could configure log4j logging for each scope >

Re: Catalina and log4j

2001-04-22 Thread Craig R. McClanahan
On Sat, 21 Apr 2001, Ceki [iso-8859-1] Gülcü wrote: > > Hello, > > I am toying with the idea of migrating catalina logging to log4j. Let > me begin by saying that I am far from being familiar with catalina > internals but I am getting there slowly. > > After a short initial study and some ex

Re: Catalina and log4j

2001-04-22 Thread Glenn Nielsen
"Craig R. McClanahan" wrote: > > On Sat, 21 Apr 2001, Glenn Nielsen wrote: > > > Ceki Gülcü wrote: > > > >> One important point to remember is that each > >> webapp classloader could load a fresh copy of log4j so that each > >> webapp has its own logging universe. > > > > > This would significan

Re: Catalina and log4j

2001-04-22 Thread Ceki Gülcü
At 20:02 21.04.2001 -0700, you wrote: >Since I had so shamelessly copied Craig's Services model out of Catalina to use it in >another project that never made it, I actually have some experience with this. I had >really appreciated the logging in the Catalina framework, because it was always >

Re: Catalina and log4j

2001-04-22 Thread Ceki Gülcü
At 21:40 21.04.2001 -0700, you wrote: >On Sat, 21 Apr 2001, Glenn Nielsen wrote: > >> Ceki Gülcü wrote: >> >>> One important point to remember is that each >>> webapp classloader could load a fresh copy of log4j so that each >>> webapp has its own logging universe. > >> >> This would significa

Re: Catalina and log4j

2001-04-22 Thread John Gentilin
My two cents as a Log4J User. I use Log4J in my servlets and I think it great. Logging has never been so easy. One issue though, the Configurator class holds it data in a Static variable so two servlets inside the same JVM will each over write the others config. Even since I implemented Log4J I w

Re: Catalina and log4j

2001-04-22 Thread Ceki Gülcü
At 23:04 21.04.2001 -0500, you wrote: >Ceki Gülcü wrote: >> >> >> One important point to remember is that each webapp classloader could load a fresh >copy of log4j so that each webapp has its own logging universe. >> > >This would significantly increase the memory footprint required for loggin

Re: Catalina and log4j

2001-04-21 Thread Glenn Nielsen
Ceki, This is welcome news! It isn't clear to me whether the standard servlet API logging methods could use log4j behind the scense to do logging. This would be very nice, especially if you could configure log4j logging for each scope (Engine, Host, DefaultContext, Context) in server.xml. And e

Catalina and log4j

2001-04-21 Thread Ceki Gülcü
Hello, I am toying with the idea of migrating catalina logging to log4j. Let me begin by saying that I am far from being familiar with catalina internals but I am getting there slowly. After a short initial study and some experimentation, here are some tentative conclusions: 1) The way log