diff options
Diffstat (limited to 'conf/log4perl-json.conf')
-rw-r--r-- | conf/log4perl-json.conf | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/conf/log4perl-json.conf b/conf/log4perl-json.conf index c5d7e2c1f..a9c4b6e1a 100644 --- a/conf/log4perl-json.conf +++ b/conf/log4perl-json.conf @@ -13,10 +13,12 @@ log4perl.appender.Cereal.layout.max_json_length = 16384 # The default is Bugzilla. This is the "Logger" field # in https://wiki.mozilla.org/Firefox/Services/Logging#MozLog_JSON_schema #and it might be useful to pass in different values for different jobs. -log4perl.appender.Cereal.layout.name = Bugzilla +log4perl.appender.Cereal.layout.name = CEREAL -log4perl.filter.IS_INTERACTIVE = sub { Bugzilla::Logging::is_interactive() } +log4perl.filter.LOG_TO_STDERR = sub { not $ENV{LOG4PERL_STDERR_DISABLE} } 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 +log4perl.appender.Screen.Filter = LOG_TO_STDERR +log4perl.appender.Screen.stderr = 1 +log4perl.appender.Screen.layout = Log::Log4perl::Layout::Mozilla +log4perl.appender.Screen.layout.max_json_length = 16384 +log4perl.appender.Screen.layout.name = STDERR |