2014-06-12 07:21:09 +02:00
|
|
|
# define the file appender
|
|
|
|
log4j.appender.FILE = org.apache.log4j.RollingFileAppender
|
|
|
|
log4j.appender.FILE.File = ripme.log
|
|
|
|
log4j.appender.FILE.ImmediateFlush = true
|
2015-01-11 14:11:10 +01:00
|
|
|
log4j.appender.FILE.Threshold = warn
|
2014-06-12 07:21:09 +02:00
|
|
|
log4j.appender.FILE.maxFileSize = 20MB
|
|
|
|
log4j.appender.FILE.layout = org.apache.log4j.PatternLayout
|
2015-02-10 08:29:29 +01:00
|
|
|
log4j.appender.FILE.layout.ConversionPattern = %d %-5p %c{2} %x.%M() %m%n
|
2014-06-12 07:21:09 +02:00
|
|
|
|
|
|
|
# define the console appender
|
|
|
|
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
|
|
|
|
log4j.appender.stdout.Target = System.out
|
2015-01-11 14:11:10 +01:00
|
|
|
log4j.appender.stdout.Threshold = warn
|
2014-06-12 07:21:09 +02:00
|
|
|
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
|
|
|
|
log4j.appender.stdout.layout.ConversionPattern = %m%n
|
|
|
|
|
|
|
|
# now map our console appender as a root logger, means all log messages will go to this appender
|
|
|
|
log4j.rootLogger = debug, stdout, FILE
|