Configure log4j for Jetty 8.0.4
This task configure log4j for Jetty 8.0.4
Configure log4j for Jetty 8.0.4
- Copy log4j-1.2.8.jar to JETTY_HOME/lib/ext folder
- Append JETTY_HOME/resources/log4j.properties with following code
log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=logs/website.log log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n log4j.appender.R.MaxFileSize=200KB log4j.appender.R.MaxBackupIndex=10240 log4j.rootLogger=WARN, R log4j.logger.website=DEBUG