diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-03-01 03:55:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-01 03:55:10 +0100 |
commit | fb85881651195cd97ef1499136e947dd56c3b4f3 (patch) | |
tree | 983c8827473da442fe8b685709eaacf496ba9ee8 /conf/log4perl-json.conf | |
parent | 48f08ef18983729dbdcd1af9468fb4ea1ee25fbe (diff) | |
download | bugzilla-fb85881651195cd97ef1499136e947dd56c3b4f3.tar.gz bugzilla-fb85881651195cd97ef1499136e947dd56c3b4f3.tar.xz |
Bug 1437646 - add support for Log::Log4perl
Diffstat (limited to 'conf/log4perl-json.conf')
-rw-r--r-- | conf/log4perl-json.conf | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/conf/log4perl-json.conf b/conf/log4perl-json.conf new file mode 100644 index 000000000..41562034e --- /dev/null +++ b/conf/log4perl-json.conf @@ -0,0 +1,16 @@ +log4perl.rootLogger = INFO, Socket +log4perl.appender.Socket = Log::Log4perl::Appender::Socket +log4perl.appender.Socket.PeerAddr=127.0.0.1 +log4perl.appender.Socket.PeerPort=5880 +log4perl.appender.Socket.defer_connection=1 + +# This class is currently bundled with bugzilla +log4perl.appender.Socket.layout = Log::Log4perl::Layout::Mozilla + +# lines longer than this will not be logged in detail. +# instead a scary message with a much higher severity will be logged. +log4perl.appender.Socket.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.Socket.layout.name = Bugzilla |