system-config/modules/gerritbot/files/logging.config
Clark Boylan 7398b4b0d0 Enable gerritbot logging to /var/log/gerritbot.
Configure gerritbot to log into /var/log/gerritbot.

Change-Id: I24f8602eaa0f779de9d455cda8ad692f932ebd39
Reviewed-on: https://review.openstack.org/11939
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-08-24 20:05:23 +00:00

45 lines
778 B
Plaintext

[loggers]
keys=root,gerrit,gerritbot
[handlers]
keys=console,debug,normal
[formatters]
keys=simple
[logger_root]
level=WARNING
handlers=console
[logger_gerrit]
level=DEBUG
handlers=debug,normal
qualname=gerrit
[logger_gerritbot]
level=DEBUG
handlers=debug,normal
qualname=gerritbot
[handler_console]
level=WARNING
class=StreamHandler
formatter=simple
args=(sys.stdout,)
[handler_debug]
level=DEBUG
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('/var/log/gerritbot/gerritbot_debug.log', 'midnight', 1, 30,)
[handler_normal]
level=INFO
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('/var/log/gerritbot/gerritbot.log', 'midnight', 1, 30,)
[formatter_simple]
format=%(asctime)s %(levelname)s %(name)s: %(message)s
datefmt=