geminispace.info

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/geminispace.info.git
Log | Files | Refs | README | LICENSE

commit f0c4a784b4bc35049ab923fd68fc99c215e8e99b
parent 43397bdda337c7a0f31019358bd56eb0ae87a993
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Fri,  6 Nov 2020 08:43:16 -0500

Update default logging config to log to both console and file

Diffstat:
Mlogging.ini | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/logging.ini b/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