diff options
Diffstat (limited to 'conf/log4perl-syslog.conf')
-rw-r--r-- | conf/log4perl-syslog.conf | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/conf/log4perl-syslog.conf b/conf/log4perl-syslog.conf index 32f3d4c11..c21c240d8 100644 --- a/conf/log4perl-syslog.conf +++ b/conf/log4perl-syslog.conf @@ -1,9 +1,14 @@ -log4perl.rootLogger = INFO, syslog -log4perl.appender.syslog = Log::Dispatch::Syslog -log4perl.appender.syslog.min_level = notice -log4perl.appender.syslog.ident = apache -log4perl.appender.syslog.facility = local4 -log4perl.appender.syslog.logopt = cons,pid -log4perl.appender.syslog.layout = Log::Log4perl::Layout::PatternLayout -log4perl.appender.syslog.layout.ConversionPattern = [%c] %m{chomp}%n +log4perl.rootLogger = INFO, Syslog, Screen +log4perl.appender.Syslog = Log::Dispatch::Syslog +log4perl.appender.Syslog.min_level = notice +log4perl.appender.Syslog.ident = apache +log4perl.appender.Syslog.facility = local4 +log4perl.appender.Syslog.logopt = cons,pid +log4perl.appender.Syslog.layout = Log::Log4perl::Layout::PatternLayout +log4perl.appender.Syslog.layout.ConversionPattern = [%c] %m{chomp}%n +log4perl.filter.IS_INTERACTIVE = sub { Bugzilla::Logging::is_interactive() } +log4perl.appender.Screen = Log::Log4perl::Appender::Screen +log4perl.appender.Screen.Filter = IS_INTERACTIVE +log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout +log4perl.appender.Screen.layout.ConversionPattern = %-5.5p [%d] [%c] %m{chomp} at %F line %L (%M)%n |