RE: Re[2]: Log4j Configuration with Servlet

2002-12-13 Thread Mark Womack
> >That's a good point. At some point in time, it should be documented > >that any container should have one and only once copy of > >log4j.jar+associates. Once the selector approach is adopted, putting > >log4j.jar in WEB-INF/lib must be strongly discouraged. > > I agree with the first part, not

RE: Re[2]: Log4j Configuration with Servlet

2002-12-13 Thread Jacob Kjome
Yep, There is no harm in using Log4j within WEB-INF/lib even if Log4j exists in a parent classloader. It doesn't affect any other apps the the current app is free to use whatever version of the jars they want. In the context of using a repository selector, putting log4j.jar in the WEB-INF/li

RE: Re[2]: Log4j Configuration with Servlet

2002-12-13 Thread Shapira, Yoav
Howdy, >That's a good point. At some point in time, it should be documented >that any container should have one and only once copy of >log4j.jar+associates. Once the selector approach is adopted, putting >log4j.jar in WEB-INF/lib must be strongly discouraged. I agree with the first part, not the

Re[2]: Log4j Configuration with Servlet

2002-12-13 Thread Ceki Gülcü
At 08:32 13.12.2002 -0600, Jacob Kjome wrote: Looks like Mark made it so that the selectors package is separate from the core log4j.jar. I guess that is fine. Users will simply have to be diligent about making sure that the selectors.jar (or whatever it will be called) and log4j.jar are alwa

RE: Re[2]: Log4j Configuration with Servlet

2002-12-13 Thread Shapira, Yoav
Howdy, >If we think it is a good, useful example of a repository selector, and to >be useful it needs to live at the same location as the log4j jar, why >should we not include it in the official distribution? When does it become >"core", in >your opinion? In my mind, it may be possible that the

Re[2]: Log4j Configuration with Servlet

2002-12-13 Thread Jacob Kjome
Hi Ceki, See comments inline below... At 12:09 PM 12/13/2002 +0100, you wrote: At 21:04 12.12.2002 -0600, Jacob Kjome wrote: MW> I would also like to say that I have proposed that we include servlet/web MW> application support in v1.3 of log4j. This would include an init servlet, MW> conte

Re[2]: Log4j Configuration with Servlet

2002-12-13 Thread Ceki Gülcü
At 21:04 12.12.2002 -0600, Jacob Kjome wrote: MW> I would also like to say that I have proposed that we include servlet/web MW> application support in v1.3 of log4j. This would include an init servlet, MW> context listeners, configuration via a servlet, etc. Jacob has proposed to MW> include

Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Jacob Kjome
Hi Ceki, see comments inline below... At 12:45 AM 12/13/2002 +0100, you wrote: At 15:05 12.12.2002 -0600, Jacob Kjome wrote: Hello Mark, MW> I would also like to say that I have proposed that we include servlet/web MW> application support in v1.3 of log4j. This would include an init servlet

RE: Re[6]: Log4j Configuration with Servlet

2002-12-12 Thread Jacob Kjome
j, I don't think the class name needs to start with Log4j... -Mark > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 2:15 PM > To: Log4J Users List > Subject: Re[6]: Log4j Configuration with Servlet > > &g

RE: Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Mark Womack
> Yes, we can reasonably do that. However, I am unsure about the > maturity of any of these approaches without proper > testing/analysis. Consequently, we should include these selectors > assuming that they are visibly marked as experimental. Their inclusion > might spur Container developers to ref

RE: Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Ceki Gülcü
At 15:54 12.12.2002 -0800, Mark Womack wrote: > One possible one-shot-kill-all-birds solution is to use the JNDI > space. See the updated version of http://www.qos.ch/logging/sc.html > (in particular JNDIRS). What do you think? > > I also suggested the JNDI solution in commons-dev in a somewhat >

RE: Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Mark Womack
> One possible one-shot-kill-all-birds solution is to use the JNDI > space. See the updated version of http://www.qos.ch/logging/sc.html > (in particular JNDIRS). What do you think? > > I also suggested the JNDI solution in commons-dev in a somewhat > different context. It seemed to be well receiv

Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Ceki Gülcü
At 15:05 12.12.2002 -0600, Jacob Kjome wrote: Hello Mark, MW> I would also like to say that I have proposed that we include servlet/web MW> application support in v1.3 of log4j. This would include an init servlet, MW> context listeners, configuration via a servlet, etc. Jacob has proposed to M

RE: Re[6]: Log4j Configuration with Servlet

2002-12-12 Thread Mark Womack
Sent: Thursday, December 12, 2002 2:15 PM > To: Log4J Users List > Subject: Re[6]: Log4j Configuration with Servlet > > > Hello Mark, > > Here it is (zip file attached). > > I set the package as org.apache.log4j.spi and commented out the > imports from that package.

Re[6]: Log4j Configuration with Servlet

2002-12-12 Thread Jacob Kjome
4J Users List >> Subject: Re[4]: Log4j Configuration with Servlet >> >> >> MW> Jacob, do you think you can make an "official" apache >> submission (with all >> MW> the correct apache headers, etc)? >> >> Is there some place that

Re[6]: Log4j Configuration with Servlet

2002-12-12 Thread Jacob Kjome
rovide enough MW> example. It is basically just the license header info at the top, AFAIK. MW> -Mark >> -Original Message- >> From: Jacob Kjome [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, December 12, 2002 1:48 PM >> To: Log4J Users List >>

RE: Re[4]: Log4j Configuration with Servlet

2002-12-12 Thread Mark Womack
Log4J Users List > Subject: Re[4]: Log4j Configuration with Servlet > > > MW> Jacob, do you think you can make an "official" apache > submission (with all > MW> the correct apache headers, etc)? > > Is there some place that describes all that, or should

Re[4]: Log4j Configuration with Servlet

2002-12-12 Thread Jacob Kjome
MW> Jacob, do you think you can make an "official" apache submission (with all MW> the correct apache headers, etc)? Is there some place that describes all that, or should I just copy the license from some other Log4j file and paste it into Log4jCRS? Jake -- To unsubscribe, e-mail:

RE: Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Mark Womack
> >Actually, the main thing I'd propose is having Log4jCRS (Log4j > >Contextual Repository Selector) be included with the Log4j > >distribution. The reasons for this are described in my post > that Mark > >linked to above. > > I know this is not a vote, but +1 on that. As part of the > contrib

RE: Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Mark Womack
Howdy Jacob, > Actually, If you look in my post, I mention more than just the > Log4jInit servlet. I also mention a servlet context listener > (SCL) called > Log4jApplicationWatch. I actually use that currently to do cleanup > such as shutting down loggers and appenders of the currently used >

RE: Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Shapira, Yoav
Howdy, >Actually, the main thing I'd propose is having Log4jCRS (Log4j >Contextual Repository Selector) be included with the Log4j >distribution. The reasons for this are described in my post that Mark >linked to above. I know this is not a vote, but +1 on that. As part of the contrib tree, not

Re[2]: Log4j Configuration with Servlet

2002-12-12 Thread Jacob Kjome
-- >> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, December 12, 2002 5:50 AM >> To: Log4J Users List >> Subject: RE: Log4j Configuration with Servlet >> >> >> Howdy, >> While Mr. (?) Lenharcik's suggestion will work, I&#x

RE: Log4j Configuration with Servlet

2002-12-12 Thread Mark Womack
ecember 12, 2002 5:50 AM > To: Log4J Users List > Subject: RE: Log4j Configuration with Servlet > > > Howdy, > While Mr. (?) Lenharcik's suggestion will work, I'd suggest doing it > slightly differently: use a ServletContextListener and > initialize log4j > i

RE: Log4j Configuration with Servlet

2002-12-12 Thread Shapira, Yoav
Howdy, >Mr is right; But only if you are using the servlet api 2.3 this would be >work. My solution was done before... ;-) That's true. My solution requires servlet API 2.3 or later, and I should've mentioned that. In fact, until v2.3 came out, I had a load-on-startup servlet as well. The only

AW: Log4j Configuration with Servlet

2002-12-12 Thread Lenharcik, Juraj
Hi, Howdy, While Mr. (?) Lenharcik's suggestion will work, I'd suggest doing it slightly differently: use a ServletContextListener and initialize log4j in the contextInitialized() method. Mr is right; But only if you are using the servlet api 2.3 this would be work. My solution was done before.

RE: Log4j Configuration with Servlet

2002-12-12 Thread Daniel Serodio
I suggest adding this to the FAQ. On Thu, 2002-12-12 at 11:49, Shapira, Yoav wrote: > Howdy, > While Mr. (?) Lenharcik's suggestion will work, I'd suggest doing it > slightly differently: use a ServletContextListener and initialize log4j > in the contextInitialized() method. That will get called

RE: Log4j Configuration with Servlet

2002-12-12 Thread Shapira, Yoav
Howdy, While Mr. (?) Lenharcik's suggestion will work, I'd suggest doing it slightly differently: use a ServletContextListener and initialize log4j in the contextInitialized() method. That will get called before any servlet's init() method. And the contextDestroyed() method of that listener is a

AW: Log4j Configuration with Servlet

2002-12-12 Thread Lenharcik, Juraj
CLASSNAME.class.getRessource("/configfile.lcf") juraj -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. Dezember 2002 11:55 An: log4j-user Betreff: Log4j Configuration with Servlet Hi all, Does anybody know if there is any particular care to

Log4j Configuration with Servlet

2002-12-12 Thread [EMAIL PROTECTED]
Hi all, Does anybody know if there is any particular care to let Log4j log inside a servlet? By now, I've just added the log4j.properties file in WEB-INF/classes (under Tomcat) of my application, as suggested in the short-manual (http://jakarta.apache.org/log4j/docs/manual.html). Am I f