2014-02-27 04:54:44 +01:00
|
|
|
# define the file appender
|
|
|
|
log4j.appender.FILE = org.apache.log4j.RollingFileAppender
|
|
|
|
log4j.appender.FILE.File = ripme.log
|
|
|
|
log4j.appender.FILE.ImmediateFlush = true
|
|
|
|
log4j.appender.FILE.Threshold = debug
|
|
|
|
log4j.appender.FILE.maxFileSize = 20MB
|
|
|
|
log4j.appender.FILE.layout = org.apache.log4j.PatternLayout
|
|
|
|
log4j.appender.FILE.layout.ConversionPattern = %d %-4r [%t] %-5p %c{2} %x - %m%n
|
|
|
|
|
|
|
|
# define the console appender
|
|
|
|
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
|
|
|
|
log4j.appender.stdout.Target = System.out
|
2014-02-27 10:28:23 +01:00
|
|
|
log4j.appender.stdout.Threshold = info
|
2014-02-27 04:54:44 +01:00
|
|
|
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
|
2014-02-27 10:28:23 +01:00
|
|
|
log4j.appender.stdout.layout.ConversionPattern = %m%n
|
2014-02-27 04:54:44 +01:00
|
|
|
|
|
|
|
# now map our console appender as a root logger, means all log messages will go to this appender
|
2014-02-27 10:28:23 +01:00
|
|
|
log4j.rootLogger = debug, stdout, FILE
|