You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Peter Choe <ch...@mindspring.com> on 2002/06/05 15:30:36 UTC
logger not working with servlet
i am trying to log4j to work with a servlet on tomcat4.0 and java1.4 on a
solaris intel machine. but when i try to call the servlet to get it to
log, i get the following message:
log4j:WARN No appenders could be found for logger (roster.TallyTest).
log4j:WARN Please initialize the log4j system properly.
this is my log property file:
log4j.rootLogger=debug, A1, R
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=/export/home/tomcat/logs/coursetally.log
log4j.appender.R.MaxFileSize=100KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
~
any suggestions on why it isn't working for my servlets, but works for
stand alone java applications?
Peter Choe
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>