1 |
3032
|
perry
|
# For JBoss: Avoid to setup Log4J outside $JBOSS_HOME/server/default/deploy/log4j.xml!
|
2 |
|
|
# For all other servers: Comment out the Log4J listener in web.xml to activate Log4J.
|
3 |
|
|
log4j.rootLogger=INFO, stdout
|
4 |
|
|
|
5 |
|
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
6 |
|
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
7 |
|
|
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
|
8 |
|
|
|
9 |
|
|
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
|
10 |
|
|
|
11 |
|
|
# Keep three backup files.
|
12 |
|
|
log4j.appender.logfile.MaxBackupIndex=3
|
13 |
|
|
# Pattern to output: date priority [category] - message
|
14 |
|
|
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
15 |
|
|
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
|