From 811c915c5fea57c7d9439f0e31ac378506a7aba5 Mon Sep 17 00:00:00 2001 From: Andrew Leeming Date: Fri, 21 Oct 2016 15:17:02 +0100 Subject: Patch for : No section: 'formatters' Config file was missing from staged files --- sandboxlib/logger.conf | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sandboxlib/logger.conf 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 -- cgit v1.2.1