ddb23eeb7b
Python logging has a WatchedFileHandler which will do the correct thing for logrotate when copytruncate is not used. Do this to avoid having multiple copies of the same log in place. Also, this should avoid a race where log data is lost between copying and truncating done by logrotate. Change-Id: Idbbc7869004a03b8f19cfbd81ad07f5584ce1964
50 lines
766 B
Plaintext
50 lines
766 B
Plaintext
[loggers]
|
|
keys=root,zuul,gerrit,gear
|
|
|
|
[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=INFO
|
|
handlers=debug,normal
|
|
qualname=gerrit
|
|
|
|
[logger_gear]
|
|
level=WARNING
|
|
handlers=debug,normal
|
|
qualname=gear
|
|
|
|
[handler_console]
|
|
level=WARNING
|
|
class=StreamHandler
|
|
formatter=simple
|
|
args=(sys.stdout,)
|
|
|
|
[handler_debug]
|
|
level=DEBUG
|
|
class=logging.handlers.WatchedFileHandler
|
|
formatter=simple
|
|
args=('/var/log/zuul/merger-debug.log',)
|
|
|
|
[handler_normal]
|
|
level=INFO
|
|
class=logging.handlers.WatchedFileHandler
|
|
formatter=simple
|
|
args=('/var/log/zuul/merger.log',)
|
|
|
|
[formatter_simple]
|
|
format=%(asctime)s %(levelname)s %(name)s: %(message)s
|
|
datefmt=
|