From 6a3d18e233477c1868e462ccc4dfdc49edba1ac9 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 31 May 2012 10:16:45 -0700 Subject: [PATCH] Add zuul logging config. Change-Id: Ie63267dd28ac84ffd8ba60518e296faba0451d46 --- .../files/zuul/logging.conf | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/modules/openstack-ci-config/files/zuul/logging.conf b/modules/openstack-ci-config/files/zuul/logging.conf index 9e544d3ace..948b05826b 100644 --- a/modules/openstack-ci-config/files/zuul/logging.conf +++ b/modules/openstack-ci-config/files/zuul/logging.conf @@ -1 +1,39 @@ -#empty for now +[loggers] +keys=root,zuul + +[handlers] +keys=console,debug,normal + +[formatters] +keys=simple + +[logger_root] +level=WARNING +handlers=console + +[logger_zuul] +level=DEBUG +handlers=debug,normal +qualname=zuul + +[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=