tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: log4j to write Tomcat logs to Windows Event Log
Date Tue, 10 Jul 2012 16:29:36 GMT
Hash: SHA1


On 7/9/12 11:52 AM, Dunbar, Kevin D CIV SPAWARSYSCEN-PACIFIC, 56250 wrote:
> Thank you Chris and Konstantin for replying to my message. Here is
>  the contents of the file... (This was taken from
> the instructions on the Tomcat website for logging with log4j).
> Thank you again for any help you can provide.
> log4j.rootLogger=INFO, CATALINA # Define all the appenders 
> log4j.appender.CATALINA=org.apache.log4j.DailyRollingFileAppender 
> log4j.appender.CATALINA.File=${catalina.base}/logs/catalina. 
> log4j.appender.CATALINA.Append=true 
> log4j.appender.CATALINA.Encoding=UTF-8

That looks okay to me, except that I didn't realize that
$CATALINA_BASE/lib would load JAR files contained in it as well as raw
resources, but you are following the documentation faithfully.

Try setting the "-Dlog4j.debug" system property (no specific value is
necessary) and log4j should spew a lot of stuff to stdout that you can
see when it is performing its configuration -- you'll be able to see
when it first initializes and what happens at that time.

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message