7f61fc38b0
Now that zuul-web runs with cherrypy we need to update our logging to include cherrypy logs. We start by only including errors for now. This is based on the config details at: https://docs.cherrypy.org/en/latest/basics.html#play-along-with-your-other-loggers Change-Id: I870da2272f8cfe5ed0a862e5ac6aa1920ddaa2f7
55 lines
839 B
Plaintext
55 lines
839 B
Plaintext
[loggers]
|
|
keys=root,zuul,gerrit,gear,cherrypy
|
|
|
|
[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_cherrypy]
|
|
level=WARN
|
|
handlers=debug,normal
|
|
qualname=cherrypy
|
|
|
|
[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/web-debug.log',)
|
|
|
|
[handler_normal]
|
|
level=INFO
|
|
class=logging.handlers.WatchedFileHandler
|
|
formatter=simple
|
|
args=('/var/log/zuul/web.log',)
|
|
|
|
[formatter_simple]
|
|
format=%(asctime)s %(levelname)s %(name)s: %(message)s
|
|
datefmt=
|