]> git.aero2k.de Git - urlbot-v3.git/commitdiff
better logging
authorThorsten S <mail@aero2k.de>
Fri, 3 Jan 2020 22:00:43 +0000 (23:00 +0100)
committerThorsten S <mail@aero2k.de>
Fri, 3 Jan 2020 22:00:43 +0000 (23:00 +0100)
logging.ini

index ef662b2a924b5d3e4ea9e848ce61a89fdc2563e7..49372e692d5162b3a3a3041b861c6767a3236398 100644 (file)
@@ -1,5 +1,5 @@
 [loggers]
-keys=root
+keys=root,pika
 
 [handlers]
 keys=stream_handler
@@ -11,6 +11,11 @@ keys=formatter
 level=INFO
 handlers=stream_handler
 
+[logger_pika]
+level=WARNING
+handlers=stream_handler
+qualname=pika
+
 [handler_stream_handler]
 class=StreamHandler
 level=INFO
@@ -18,4 +23,4 @@ formatter=formatter
 args=(sys.stderr,)
 
 [formatter_formatter]
-format=%(levelname).1s %(funcName)-15s %(message)s
+format=%(levelname).1s %(name)s:%(funcName)-15s %(message)s