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 Sankar Kondur <sk...@appliedinfo.com> on 2001/11/24 01:56:53 UTC

Log4J TagLib

Has anyone got the log4j taglib working in Tomcat4.0.

I tried the sample web-app that comes with the taglib but i get
initialization errors.

log4j:ERROR No appenders could be found for category (root).
log4j:ERROR Please initialize the log4j system properly.

Log4j.properties file contents
//****************************************  Log4j.properties
*********************************//
# Sample properties to initialise log4j
#log4j.rootCategory=debug, stdout, R
log4j.rootCategory=debug, stdout

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

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=logtags.log

log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=2

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n

//****************************************  END Log4j.properties
*********************************//



Can someone help me? 



thanks,
SK

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>