summaryrefslogtreecommitdiffstats
path: root/conf/log4perl-json.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf/log4perl-json.conf')
-rw-r--r--conf/log4perl-json.conf16
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