This commit is contained in:
Gianpaolo Coro 2013-03-12 16:08:56 +00:00
parent a8eb87edc7
commit 74c040904a
1 changed files with 9 additions and 3 deletions

View File

@ -1,10 +1,16 @@
# Use two appenders, one to log to console, another to log to a file
#log4j.rootLogger=AR
#log4j.rootLogger=AR,stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{dd/MM/yyyy HH:mm:ss} %p %t %c - %m%n
#### Second appender writes to a file
log4j.logger.AnalysisLogger=TRACE,AR
log4j.logger.AnalysisLogger=info,AR
log4j.appender.AR=org.apache.log4j.RollingFileAppender
log4j.appender.AR.Threshold=TRACE
log4j.appender.AR.Threshold=info
log4j.appender.AR.File=${GLOBUS_LOCATION}/logs/Analysis.log
log4j.appender.AR.MaxFileSize=1024KB
log4j.appender.AR.MaxBackupIndex=2