logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Thielen" <da...@windward.net>
Subject Problem with duplicate log entries - under Tomcat
Date Thu, 22 Sep 2005 15:17:06 GMT
Hello;

 

I am trying to do the following:

 

1) Send tomcat info logs and other warn logs to the console

2) Send net.windward info and other warn logs to a file.

 

This is my log file - it is not writing anything to the console and it is
writing all file entries twice. Also it does not rename the file at
midnight. HELP!

 

log4j.rootLogger=warn, stdout

log4j.rootLogger=warn, tomcat

 

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

log4j.appender.stdout.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.org.apache.catalina=INFO, stdout

 

log4j.appender.tomcat=org.apache.log4j.DailyRollingFileAppender

log4j.appender.tomcat.File=${catalina.home}/logs/tomcat.log

log4j.appender.tomcat.layout=org.apache.log4j.PatternLayout

log4j.appender.tomcat.layout.ConversionPattern=%d{HH:mm:ss.SSS} %p %t %c -
%m%n log4j.logger.org.apache.catalina=WARN, tomcat
log4j.logger.net.windward=INFO, tomcat

 

thanks - dave

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message