From 2ff42298b0a7aef2134e33257c3d2985d2926cf4 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 18 Jun 2016 09:16:52 +0000 Subject: Documented logger --- wqflask/utility/logger.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wqflask/utility/logger.py b/wqflask/utility/logger.py index 6f9d0f96..0549a7fa 100644 --- a/wqflask/utility/logger.py +++ b/wqflask/utility/logger.py @@ -7,6 +7,19 @@ # # All behaviour is defined here. Global settings (defined in # default_settings.py). +# +# To use logging and settings put this at the top of a module: +# +# import utility.logger +# logger = utility.logger.getLogger(__name__ ) +# +# To override log level for a module replace that with, for example, +# +# import logging +# import utility.logger +# logger = utility.logger.getLogger(__name__,level=logging.DEBUG) +# +# We'll add more overrides soon. import logging -- cgit v1.2.3