Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-03 Thread Adrian Robert
Understandable. I was a little dismayed to see that what had been more automatic in Tomcat-5.0.xx had become less so in Tomcat-5.5. What I mean is, in Tomcat-5.0.xx, one could add a Logger to the context configuration file, deploy that with the webapp, and dynamically get a log file for

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-03 Thread Jacob Kjome
Quoting Adrian Robert [EMAIL PROTECTED]: Understandable. I was a little dismayed to see that what had been more automatic in Tomcat-5.0.xx had become less so in Tomcat-5.5. What I mean is, in Tomcat-5.0.xx, one could add a Logger to the context configuration file, deploy that with

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-03 Thread Adrian Robert
OK, thanks to your vote of confidence in the method, I dug further and discovered that my WEB-INF/classes/log4j.properties was never being found. If I put the log4j.properties into the same jar (in WEB-INF/lib) with the class that was instantiating the Logger, it worked correctly. That's

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-03 Thread Remy Maucherat
On Thu, 03 Mar 2005 12:11:27 -0500, Adrian Robert [EMAIL PROTECTED] wrote: That's extremely odd. What version of Tomcat are you running? That's a bug because WEB-INF/classes should be put in the classpath before jars in WEB-INF/lib. I agree it's very odd. This is 5.5.7, with the 1.4

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-03 Thread Jacob Kjome
Quoting Adrian Robert [EMAIL PROTECTED]: OK, thanks to your vote of confidence in the method, I dug further and discovered that my WEB-INF/classes/log4j.properties was never being found. If I put the log4j.properties into the same jar (in WEB-INF/lib) with the class that was

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-03 Thread Adrian Robert
OK, thanks to your vote of confidence in the method, I dug further and discovered that my WEB-INF/classes/log4j.properties was never being found. If I put the log4j.properties into the same jar (in WEB-INF/lib) with the class that was instantiating the Logger, it worked correctly. That's

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-02 Thread Adrian Robert
On Mar 1, 2005, at 6:45 PM, Remy Maucherat wrote: On Tue, 01 Mar 2005 18:18:49 -0500, Adrian Robert [EMAIL PROTECTED] wrote: However, I can't seem to find the right combination of log4j.properties lines, or maybe I'm trying something impossible. (I can't find good docs on the uses of

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-02 Thread Adrian Robert
On Mar 2, 2005, at 12:25 AM, Jacob Kjome wrote: You first talk about ServletContext.log(), but then talk about log4j loggers in your app. These are two completely separate things. Which were you focusing on? With your setup, it it makes sense that ServletContext.log() messages are going

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-02 Thread Remy Maucherat
On Wed, 02 Mar 2005 09:22:33 -0500, Adrian Robert [EMAIL PROTECTED] wrote: ... log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localho st].[/myapp]=INFO, MYAPP log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[loc alhost].[/myapp]=false I don't

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-02 Thread Remy Maucherat
On Wed, 02 Mar 2005 09:21:08 -0500, Adrian Robert [EMAIL PROTECTED] wrote: On Mar 1, 2005, at 6:45 PM, Remy Maucherat wrote: On Tue, 01 Mar 2005 18:18:49 -0500, Adrian Robert [EMAIL PROTECTED] wrote: However, I can't seem to find the right combination of log4j.properties lines, or

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-02 Thread Jacob Kjome
Quoting Adrian Robert [EMAIL PROTECTED]: On Mar 2, 2005, at 12:25 AM, Jacob Kjome wrote: You first talk about ServletContext.log(), but then talk about log4j loggers in your app. These are two completely separate things. Which were you focusing on? With your setup, it it makes sense

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-02 Thread Remy Maucherat
On Wed, 2 Mar 2005 11:09:56 -0600, Jacob Kjome [EMAIL PROTECTED] wrote: Quoting Adrian Robert [EMAIL PROTECTED]: exists. This would continue to make Tomcat-5.5 more involved in logging than it should, though. I think Yoav Shapira has it right when he says that Tomcat should not really be

How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-01 Thread Adrian Robert
I'm having trouble approximating the earlier tomcat per-context Logger functionality using log4j under tomcat-5.5. Basically, I would like to have one file coming out under $CATALINA_BASE/logs/ per web application context. This appears to be no longer possible through

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-01 Thread Remy Maucherat
On Tue, 01 Mar 2005 18:18:49 -0500, Adrian Robert [EMAIL PROTECTED] wrote: I'm having trouble approximating the earlier tomcat per-context Logger functionality using log4j under tomcat-5.5. Basically, I would like to have one file coming out under $CATALINA_BASE/logs/ per web application

Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5?

2005-03-01 Thread Jacob Kjome
You first talk about ServletContext.log(), but then talk about log4j loggers in your app. These are two completely separate things. Which were you focusing on? With your setup, it it makes sense that ServletContext.log() messages are going to catalina.log. However, if you have log4j.jar in