system-config/playbooks/roles/nodepool-builder/files/logging.conf
Monty Taylor 8b1b70c77e Configure nodepool to use logging config
We have a logging config to log to /var/log/nodepool but we weren't
using it. Start using it.

Add logging config to nodepool-builder

We should log nodepool builder to /var/log/nodepool too.

Change-Id: I6e7196dc12e8c1bfc54274432b94cf53629bdf3d
2020-05-06 11:18:19 -05:00

56 lines
939 B
Plaintext

[loggers]
keys=root,nodepool,requests,openstack,kazoo
[handlers]
keys=console,debug,normal
[formatters]
keys=simple
[logger_root]
level=WARNING
handlers=console
[logger_requests]
level=WARNING
handlers=debug,normal
qualname=requests
[logger_openstack]
level=WARNING
handlers=debug,normal
qualname=openstack
[logger_nodepool]
level=DEBUG
handlers=debug,normal
qualname=nodepool
[logger_kazoo]
level=INFO
handlers=debug,normal
qualname=kazoo
propagate=0
[handler_console]
level=WARNING
class=StreamHandler
formatter=simple
args=(sys.stdout,)
[handler_debug]
level=DEBUG
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('/var/log/nodepool/builder-debug.log', 'H', 8, 30,)
[handler_normal]
level=INFO
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('/var/log/nodepool/nodepool-builder.log', 'H', 8, 30,)
[formatter_simple]
format=%(asctime)s %(levelname)s %(name)s: %(message)s
datefmt=