Re: Logging (Log4J) with Tomcat 4.1.x
No, you have to put each application log4j.xml in each WEB-INF/classes or WEB-INF/lib (in a jar) The first time you declare a Logger in your app, log4j.xml is searched in the ClassLoader; but, I donĀ“t know why (maybe some log4j initialization static code), some log4j class is loaded by the Tomcat's Common ClassLoader, not by your WebappX classloader. Because of this, log4j.lib must be in the common dir. The log4j.xml is loaded by the WebappX, so each application may have its own log4j.xml. Each time you redeploy an application, the log4j.xml is searched again. 2005/7/4, Peter Verhoye [EMAIL PROTECTED]: log4j lib must bin in the Tomcat's common/lib There are multiple webapps deployed on the server. Will adding log4j to common/lib not activate log for all of them? BB Peter 2005/7/4, Anoop kumar V [EMAIL PROTECTED]: A log4j mailing list might give u a more effective answer Try and change the appender to be ConsoleAppender (please check the name) - see if the output displays on the tomcat console.Then u can debug from there... HTH, Anoop On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote: Hi all, I must be getting stupid or so but the logging in my webapp doesn't work anymore. I've the log4j.properties file in WEB-INF/classes log4j.jar is in WEB-INF/lib My properties are: # # Configures Log4j as the Tomcat system logger # # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=DEBUG, R # # Configuration for a rolling log file (tomcat.log). # log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.DatePattern='.'-MM-dd # # Edit the next line to point to your logs directory. # The last part of the name is the log file name. # log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log log4j.appender.R.layout=org.apache.log4j.PatternLayout # # Print the date in ISO 8601 format # log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n I don't see the tomcat.log file anywhere :( Someone has any idea? BB Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Peter Verhoye Synergetic Solutions nv (www.synergetic-solutions.behttp://www.synergetic-solutions.be ) Crystal Palace Paalstraat 14 B-1080 Brussel Tel : +32 (0)2 219.10.12 Fax : +32 (0)2 219.40.28 GSM : +32 (0)475 60.12.61 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging (Log4J) with Tomcat 4.1.x
Hi all, I must be getting stupid or so but the logging in my webapp doesn't work anymore. I've the log4j.properties file in WEB-INF/classes log4j.jar is in WEB-INF/lib My properties are: # # Configures Log4j as the Tomcat system logger # # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=DEBUG, R # # Configuration for a rolling log file (tomcat.log). # log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.DatePattern='.'-MM-dd # # Edit the next line to point to your logs directory. # The last part of the name is the log file name. # log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log log4j.appender.R.layout=org.apache.log4j.PatternLayout # # Print the date in ISO 8601 format # log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n I don't see the tomcat.log file anywhere :( Someone has any idea? BB Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging (Log4J) with Tomcat 4.1.x
A log4j mailing list might give u a more effective answer Try and change the appender to be ConsoleAppender (please check the name) - see if the output displays on the tomcat console.Then u can debug from there... HTH, Anoop On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote: Hi all, I must be getting stupid or so but the logging in my webapp doesn't work anymore. I've the log4j.properties file in WEB-INF/classes log4j.jar is in WEB-INF/lib My properties are: # # Configures Log4j as the Tomcat system logger # # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=DEBUG, R # # Configuration for a rolling log file (tomcat.log). # log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.DatePattern='.'-MM-dd # # Edit the next line to point to your logs directory. # The last part of the name is the log file name. # log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log log4j.appender.R.layout=org.apache.log4j.PatternLayout # # Print the date in ISO 8601 format # log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n I don't see the tomcat.log file anywhere :( Someone has any idea? BB Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging (Log4J) with Tomcat 4.1.x
log4j lib must bin in the Tomcat's common/lib 2005/7/4, Anoop kumar V [EMAIL PROTECTED]: A log4j mailing list might give u a more effective answer Try and change the appender to be ConsoleAppender (please check the name) - see if the output displays on the tomcat console.Then u can debug from there... HTH, Anoop On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote: Hi all, I must be getting stupid or so but the logging in my webapp doesn't work anymore. I've the log4j.properties file in WEB-INF/classes log4j.jar is in WEB-INF/lib My properties are: # # Configures Log4j as the Tomcat system logger # # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=DEBUG, R # # Configuration for a rolling log file (tomcat.log). # log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.DatePattern='.'-MM-dd # # Edit the next line to point to your logs directory. # The last part of the name is the log file name. # log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log log4j.appender.R.layout=org.apache.log4j.PatternLayout # # Print the date in ISO 8601 format # log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n I don't see the tomcat.log file anywhere :( Someone has any idea? BB Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging (Log4J) with Tomcat 4.1.x
Can you delete me of the mailingList please!!! Wouter Anoop kumar V [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org, il.com [EMAIL PROTECTED] cc: 04/07/2005 16:54 Subject: Re: Logging (Log4J) with Tomcat 4.1.x Please respond to Tomcat Users List A log4j mailing list might give u a more effective answer Try and change the appender to be ConsoleAppender (please check the name) - see if the output displays on the tomcat console.Then u can debug from there... HTH, Anoop On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote: Hi all, I must be getting stupid or so but the logging in my webapp doesn't work anymore. I've the log4j.properties file in WEB-INF/classes log4j.jar is in WEB-INF/lib My properties are: # # Configures Log4j as the Tomcat system logger # # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=DEBUG, R # # Configuration for a rolling log file (tomcat.log). # log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.DatePattern='.'-MM-dd # # Edit the next line to point to your logs directory. # The last part of the name is the log file name. # log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log log4j.appender.R.layout=org.apache.log4j.PatternLayout # # Print the date in ISO 8601 format # log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n I don't see the tomcat.log file anywhere :( Someone has any idea? BB Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Daikin Europe NV Zandvoordestraat 300 8400 Oostende Belgium Tel : (+32) 59 / 55 81 11 Fax : (+32) 59 / 55 88 99 http://www.daikineurope.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging (Log4J) with Tomcat 4.1.x
log4j lib must bin in the Tomcat's common/lib There are multiple webapps deployed on the server. Will adding log4j to common/lib not activate log for all of them? BB Peter 2005/7/4, Anoop kumar V [EMAIL PROTECTED]: A log4j mailing list might give u a more effective answer Try and change the appender to be ConsoleAppender (please check the name) - see if the output displays on the tomcat console.Then u can debug from there... HTH, Anoop On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote: Hi all, I must be getting stupid or so but the logging in my webapp doesn't work anymore. I've the log4j.properties file in WEB-INF/classes log4j.jar is in WEB-INF/lib My properties are: # # Configures Log4j as the Tomcat system logger # # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=DEBUG, R # # Configuration for a rolling log file (tomcat.log). # log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.DatePattern='.'-MM-dd # # Edit the next line to point to your logs directory. # The last part of the name is the log file name. # log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log log4j.appender.R.layout=org.apache.log4j.PatternLayout # # Print the date in ISO 8601 format # log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n I don't see the tomcat.log file anywhere :( Someone has any idea? BB Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Peter Verhoye Synergetic Solutions nv (www.synergetic-solutions.be) Crystal Palace Paalstraat 14 B-1080 Brussel Tel : +32 (0)2 219.10.12 Fax : +32 (0)2 219.40.28 GSM : +32 (0)475 60.12.61 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]