aboutsummaryrefslogtreecommitdiff
path: root/rumba/log.py
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2017-06-21 17:08:16 +0200
committerMarco Capitani <m.capitani@nextworks.it>2017-06-21 17:08:16 +0200
commit26ed0d7231ce681e6f2041760ba69406ffb6ee86 (patch)
tree91ff9910ae6755d34ce2cb7067ccb2a5f6dd6125 /rumba/log.py
parent7b599d17b054055d5166a15f71a3e8246af986b7 (diff)
downloadrumba-26ed0d7231ce681e6f2041760ba69406ffb6ee86.tar.gz
rumba-26ed0d7231ce681e6f2041760ba69406ffb6ee86.zip
Storyboard implemented, to be tested
Diffstat (limited to 'rumba/log.py')
-rw-r--r--rumba/log.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/rumba/log.py b/rumba/log.py
index d95c034..987f03a 100644
--- a/rumba/log.py
+++ b/rumba/log.py
@@ -24,6 +24,13 @@ import sys
import multiprocessing
+DEBUG = logging.DEBUG
+INFO = logging.INFO
+WARNING = logging.WARNING
+ERROR = logging.ERROR
+CRITICAL = logging.CRITICAL
+
+
loggers_set = set()
@@ -95,11 +102,11 @@ def set_logging_level(level, name=None):
"""
Set the current logging level to <level> for logger named <name>.
If name is not specified, sets the logging level for all rumba loggers.
- Accepted levels are:
- DEBUG == 10,
- INFO == 20,
- WARNING == 30,
- ERROR == 40,
+ Accepted levels are:
+ DEBUG == 10,
+ INFO == 20,
+ WARNING == 30,
+ ERROR == 40,
CRITICAL == 50,
NOTSET == 0
(resets the logger: its level is set to the default or its parents' level)