aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorPjotr Prins2016-06-18 09:16:52 +0000
committerPjotr Prins2016-06-18 09:16:52 +0000
commit2ff42298b0a7aef2134e33257c3d2985d2926cf4 (patch)
treed945ae3e54b15745125cfb1ae016fabd7960544f /wqflask/utility
parent6db25e3481902c2fef5a39cdc3c1c91854138498 (diff)
downloadgenenetwork2-2ff42298b0a7aef2134e33257c3d2985d2926cf4.tar.gz
Documented logger
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/logger.py13
1 files changed, 13 insertions, 0 deletions
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