RE: o.a.log4j.servlet

2004-12-16 Thread Jacob Kjome
At 09:23 AM 12/16/2004 -0800, you wrote: >Hey Jake, comments below. > >> -Original Message- >> From: Jacob Kjome [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, December 15, 2004 6:20 PM >> To: Log4J Developers List >> Subject: RE: o.a.log4j.servlet >

RE: o.a.log4j.servlet

2004-12-16 Thread Mark Womack
Hey Jake, comments below. > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 15, 2004 6:20 PM > To: Log4J Developers List > Subject: RE: o.a.log4j.servlet > > At 05:39 PM 12/15/2004 -0800, you wrote: > >> >

RE: o.a.log4j.servlet

2004-12-15 Thread Jacob Kjome
At 05:39 PM 12/15/2004 -0800, you wrote: >> >> >> > override="false" >> description="location for Log4j-generated log files"/> >> > >Got it. Do you think that supporting a JNDI resource is a better standard >way to do this? I mean I still had to modify 2 configuration files >(server.xml

RE: o.a.log4j.servlet

2004-12-15 Thread Mark Womack
Jake, > > One thing I noticed with the default behavior in InitShutdownController > is > > that if you deploy using a war file, then the WEB-INF/log directory > > typically ends up in the temp directory the container (like jboss) uses > to > > expand/explode the war file. Tracking down the locati

RE: o.a.log4j.servlet

2004-12-15 Thread Jacob Kjome
know to configure it is the context path, such as "/Myapp" and you define the log file for your servlet context at the appserver level. Jake > -Mark > > > -----Original Message- > > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 14,

RE: o.a.log4j.servlet

2004-12-15 Thread Mark Womack
OTECTED] Subject: RE: o.a.log4j.servlet Hi, > Well, maybe you guys have had to solve this kind of problem before. I want This is a common problem, and environment-based solutions for it will break because they're fundamentally against the spirit of the Servlet and J2EE specs. The main

RE: o.a.log4j.servlet

2004-12-15 Thread Mark Womack
uesday, December 14, 2004 6:52 PM > To: Log4J Developers List > Subject: RE: o.a.log4j.servlet > > At 05:10 PM 12/14/2004 -0800, you wrote: > >Well, maybe you guys have had to solve this kind of problem before. I > want > >to have the log home directory in one place for

RE: o.a.log4j.servlet

2004-12-15 Thread Yoav Shapira
Hi, > Well, maybe you guys have had to solve this kind of problem before. I want This is a common problem, and environment-based solutions for it will break because they're fundamentally against the spirit of the Servlet and J2EE specs. The main reason these solutions will eventually break is t

RE: o.a.log4j.servlet

2004-12-14 Thread Jacob Kjome
out in the sandbox. Oh, I just remembered, I have modified the sandbox locally to work with Log4j-1.3. I'll try to check that in sometime tonight. Jake >-Mark > >-Original Message- >From: Yoav Shapira [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 14, 2004 4:33

Re: o.a.log4j.servlet

2004-12-14 Thread Andy McBride
[mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 4:33 PM To: Log4J Developers List Subject: Re: o.a.log4j.servlet Hi, It's fairly pointless to rely on getServerInfo and similar approaches: it's one of the first things security-conscious server administrators customize or spoof,

RE: o.a.log4j.servlet

2004-12-14 Thread Mark Womack
--- From: Yoav Shapira [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 4:33 PM To: Log4J Developers List Subject: Re: o.a.log4j.servlet Hi, It's fairly pointless to rely on getServerInfo and similar approaches: it's one of the first things security-conscious server admini

Re: o.a.log4j.servlet

2004-12-14 Thread Yoav Shapira
Hi, It's fairly pointless to rely on getServerInfo and similar approaches: it's one of the first things security-conscious server administrators customize or spoof, as that's a recommended best practice. Class-name-based detections (e.g. Class.forName("org.apache.catalina.foo.bar") for Tomcat) are

Re: o.a.log4j.servlet

2004-12-14 Thread Andy McBride
Also, does anyone know if there is a way to programmatically detect the web container the web app is running under? I am seeing a need to have different behavior between JBoss and Tomcat, and I was just wondering if there is a standard way to detect this. -Mark Mark, The ServletContext has

o.a.log4j.servlet

2004-12-14 Thread Mark Womack
So, I have had the opportunity at my job to integrate and use the o.a.log4j.servlet classes in the sandbox.  And I have to say that the initialization related classes (InitContextListener, InitShutdownController) really rock!  Many thanks to Jake for focusing on these classes and making