diff options
author | Andrew Leeming <andrew.leeming@codethink.co.uk> | 2016-10-21 15:17:02 +0100 |
---|---|---|
committer | Andrew Leeming <andrew.leeming@codethink.co.uk> | 2016-10-21 15:17:02 +0100 |
commit | 811c915c5fea57c7d9439f0e31ac378506a7aba5 (patch) | |
tree | 8660dfe99277f2c600510b0976f26b3f2363c4f8 | |
parent | ff7d57ba33c22ab2b20822a225dd7b1f3c991e85 (diff) | |
download | sandboxlib-leeming/bwrap-rebase-patch.tar.gz |
Patch for : No section: 'formatters'leeming/bwrap-rebase-patch
Config file was missing from staged files
-rw-r--r-- | sandboxlib/logger.conf | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sandboxlib/logger.conf b/sandboxlib/logger.conf new file mode 100644 index 0000000..4f2824e --- /dev/null +++ b/sandboxlib/logger.conf @@ -0,0 +1,37 @@ +[loggers] +keys=root,sandboxlib + +[handlers] +keys=consoleHandler,fileHandler + + +[formatters] +keys=fileFormatter,consoleFormatter + +[logger_root] +level=DEBUG +handlers=consoleHandler + +[logger_sandboxlib] +level=DEBUG +handlers=consoleHandler,fileHandler +qualname=sandboxlib +propagate=0 + +[handler_consoleHandler] +class=StreamHandler +level=WARNING +formatter=consoleFormatter +args=(sys.stdout,) + +[handler_fileHandler] +class=FileHandler +level=DEBUG +formatter=fileFormatter +args=('sandboxlib-debug.log',) + +[formatter_fileFormatter] +format=%(asctime)s %(name)-12s %(levelname)-8s %(message)s + +[formatter_consoleFormatter] +format=%(levelname)s - %(message)s
\ No newline at end of file |