-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4perl.conf.example
37 lines (33 loc) · 1.52 KB
/
log4perl.conf.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
################################
## Logging Configuration
#
# see http://search.cpan.org/perldoc?Log%3A%3ALog4perl%3A%3AConfig
# for other configuration options
#
# normal logging, error messages and sent commands
log4perl.logger=ALL, ThrukLog
# enable this line to enable debug logging
# start "./script/thruk_server.pl -d" with -d to enable debugging
#log4perl.logger=ALL, ThrukLog, DebugLog, Screen
# you have to uncomment the logger definitions below too
# normal log messages
log4perl.appender.ThrukLog=Log::Log4perl::Appender::File
log4perl.appender.ThrukLog.filename=logs/error.log
log4perl.appender.ThrukLog.mode=append
log4perl.appender.ThrukLog.Threshold=INFO
log4perl.appender.ThrukLog.layout=Log::Log4perl::Layout::PatternLayout
log4perl.appender.ThrukLog.layout.ConversionPattern=[%d][%H][%p] %m{chomp}%n
## debug too
#log4perl.appender.DebugLog=Log::Log4perl::Appender::File
#log4perl.appender.DebugLog.filename=logs/debug.log
#log4perl.appender.DebugLog.mode=append
#log4perl.appender.DebugLog.Threshold=DEBUG
#log4perl.appender.DebugLog.layout=Log::Log4perl::Layout::PatternLayout
#log4perl.appender.DebugLog.layout.ConversionPattern=[%d][%H][%p] %m{chomp}%n
## screen logger
#log4perl.logger = DEBUG, Screen
#log4perl.appender.Screen = Log::Log4perl::Appender::Screen
#log4perl.appender.Screen.stderr = 1
#log4perl.appender.Screen.Threshold = DEBUG
#log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout
#log4perl.appender.Screen.layout.ConversionPattern = [%d][%H][%p] %m{chomp}%n