summaryrefslogtreecommitdiff
path: root/mason/share/zuul-logging.conf
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-12-11 17:57:23 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-01-07 17:23:37 +0000
commitca878a6ff50c6217a7a4fc1a6d11b507bd2db504 (patch)
tree80aff82e0039e840f2a72c83ad74316895bfdfaf /mason/share/zuul-logging.conf
parent2229fda0c6103754a8d134ab009e2811e1e934cc (diff)
downloaddefinitions-ca878a6ff50c6217a7a4fc1a6d11b507bd2db504.tar.gz
Make mason.configure install the new Mason config
Diffstat (limited to 'mason/share/zuul-logging.conf')
-rw-r--r--mason/share/zuul-logging.conf44
1 files changed, 44 insertions, 0 deletions
diff --git a/mason/share/zuul-logging.conf b/mason/share/zuul-logging.conf
new file mode 100644
index 00000000..8b76da26
--- /dev/null
+++ b/mason/share/zuul-logging.conf
@@ -0,0 +1,44 @@
+[loggers]
+keys=root,zuul,gerrit
+
+[handlers]
+keys=console,debug,normal
+
+[formatters]
+keys=simple
+
+[logger_root]
+level=WARNING
+handlers=console
+
+[logger_zuul]
+level=DEBUG
+handlers=debug,normal
+qualname=zuul
+
+[logger_gerrit]
+level=DEBUG
+handlers=debug,normal
+qualname=gerrit
+
+[handler_console]
+level=WARNING
+class=StreamHandler
+formatter=simple
+args=(sys.stdout,)
+
+[handler_debug]
+level=DEBUG
+class=logging.handlers.TimedRotatingFileHandler
+formatter=simple
+args=('/var/log/zuul/debug.log', 'midnight', 1, 30,)
+
+[handler_normal]
+level=INFO
+class=logging.handlers.TimedRotatingFileHandler
+formatter=simple
+args=('/var/log/zuul/zuul.log', 'midnight', 1, 30,)
+
+[formatter_simple]
+format=%(asctime)s %(levelname)s %(name)s: %(message)s
+datefmt=