7398b4b0d0
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
45 lines
778 B
Plaintext
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=
|