diff options
author | Pjotr Prins | 2016-06-18 09:16:52 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-18 09:16:52 +0000 |
commit | 2ff42298b0a7aef2134e33257c3d2985d2926cf4 (patch) | |
tree | d945ae3e54b15745125cfb1ae016fabd7960544f /wqflask/utility/logger.py | |
parent | 6db25e3481902c2fef5a39cdc3c1c91854138498 (diff) | |
download | genenetwork2-2ff42298b0a7aef2134e33257c3d2985d2926cf4.tar.gz |
Documented logger
Diffstat (limited to 'wqflask/utility/logger.py')
-rw-r--r-- | wqflask/utility/logger.py | 13 |
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 |