Browse Source

Update default logging config to log to both console and file

remotes/src/master
Natalie Pendragon 11 months ago
parent
commit
f0c4a784b4
  1. 16
      logging.ini

16
logging.ini

@ -2,20 +2,26 @@
keys=root
[handlers]
keys=dev
keys=consoleHandler,fileHandler
[formatters]
keys=plain
[logger_root]
level=DEBUG
handlers=dev
level=NOTSET
handlers=consoleHandler,fileHandler
[handler_dev]
[handler_consoleHandler]
class=StreamHandler
level=DEBUG
level=INFO
formatter=plain
args=(sys.stdout,)
[handler_fileHandler]
class=FileHandler
level=DEBUG
formatter=plain
args=("gus.log",)
[formatter_plain]
format=%(asctime)s %(module)-8s %(levelname)-8s %(message)s

Loading…
Cancel
Save