aboutsummaryrefslogtreecommitdiff
path: root/rumba/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'rumba/log.py')
-rw-r--r--rumba/log.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/rumba/log.py b/rumba/log.py
index 9abddce..3a21ee1 100644
--- a/rumba/log.py
+++ b/rumba/log.py
@@ -242,16 +242,19 @@ 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,
- CRITICAL == 50,
- NOTSET == 0
- (resets the logger: its level is set to the default or its parents' level)
+
:param level: the desired logging level.
:param name: The name of the logger to configure
+
+ .. note:: 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)
"""
if name is None:
if level == 'NOTSET' or level == 0: