logger.conf 862 Bytes
Newer Older
Stefan Tauner's avatar
Stefan Tauner committed
1
2
3
4
layout_class = Log::Log4perl::Layout::PatternLayout
# layout_class = Log::Log4perl::Layout::SimpleLayout
layout_pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %p - %m (%F:%L> %M)%n

Stefan Tauner's avatar
Stefan Tauner committed
5
6
7
8
log4perl.rootLogger                  = TRACE, logfile, screen

log4perl.appender.screen             = Log::Log4perl::Appender::Screen
log4perl.appender.screen.stderr      = 0
9
log4perl.appender.screen.Threshold   = INFO
Stefan Tauner's avatar
Stefan Tauner committed
10
11
log4perl.appender.screen.layout = ${layout_class}
log4perl.appender.screen.layout.ConversionPattern = ${layout_pattern}
Stefan Tauner's avatar
Stefan Tauner committed
12
13
14

log4perl.appender.logfile            = Log::Log4perl::Appender::File
log4perl.appender.logfile.Threshold  = TRACE
Stefan Tauner's avatar
Stefan Tauner committed
15
log4perl.appender.logfile.filename   = sub { $0 =~ s/.pl/.log/r; }
Stefan Tauner's avatar
Stefan Tauner committed
16
log4perl.appender.logfile.mode       = append
Stefan Tauner's avatar
Stefan Tauner committed
17
18
log4perl.appender.logfile.layout = ${layout_class}
log4perl.appender.logfile.layout.ConversionPattern = ${layout_pattern}