diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-04-10 17:29:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 17:29:02 +0200 |
commit | 0002ecc5bb7078e2da0350fcc3c2850cf02bcd7b (patch) | |
tree | 4a465207632b31ddae6d34df623ce37da5fd3267 /conf/log4perl-vagrant.conf | |
parent | 58c4f6814461ee4e35f0cffbdd63d948df940d35 (diff) | |
download | bugzilla-0002ecc5bb7078e2da0350fcc3c2850cf02bcd7b.tar.gz bugzilla-0002ecc5bb7078e2da0350fcc3c2850cf02bcd7b.tar.xz |
Bug 1450990 - Refactor a bunch of the logging config files
Diffstat (limited to 'conf/log4perl-vagrant.conf')
-rw-r--r-- | conf/log4perl-vagrant.conf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/conf/log4perl-vagrant.conf b/conf/log4perl-vagrant.conf new file mode 100644 index 000000000..d9c3e2753 --- /dev/null +++ b/conf/log4perl-vagrant.conf @@ -0,0 +1,24 @@ +log4perl.rootLogger = DEBUG, TextFile, JSONFile, Screen + +log4perl.appender.TextFile = Log::Log4perl::Appender::File +log4perl.appender.TextFile.layout = Log::Log4perl::Layout::PatternLayout +log4perl.appender.TextFile.filename = sub { Bugzilla::Logging->logfile("bugzilla.log") } +log4perl.appender.TextFile.layout.ConversionPattern = %-5.5p [%d] [%c] %m{chomp} at %F line %L (%M)%n +log4perl.appender.TextFile.create_at_logtime = true +log4perl.appender.TextFile.owner = vagrant +log4perl.appender.TextFile.group = apache + +log4perl.appender.JSONFile = Log::Log4perl::Appender::File +log4perl.appender.JSONFile.layout = Log::Log4perl::Layout::Mozilla +log4perl.appender.JSONFile.filename = sub { Bugzilla::Logging->logfile("bugzilla-json.log") } +log4perl.appender.JSONFile.mode = append +log4perl.appender.JSONFile.create_at_logtime = true +log4perl.appender.JSONFile.owner = vagrant +log4perl.appender.JSONFile.group = apache + +log4perl.filter.LOG_TO_STDERR = sub { not $ENV{LOG4PERL_STDERR_DISABLE} } +log4perl.appender.Screen = Log::Log4perl::Appender::Screen +log4perl.appender.Screen.Filter = LOG_TO_STDERR +log4perl.appender.Screen.stderr = 1 +log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout +log4perl.appender.Screen.layout.ConversionPattern = %d %6p | %c | %m{chomp}%n |