Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Development Team/Almanac/Python Standard Logging
(view source)
Revision as of 19:46, 22 April 2010
69 bytes added
,
19:46, 22 April 2010
_logger.setLevel(logging.DEBUG)
Line 12:
Line 12:
import logging
import logging
_logger = logging.getLogger('annotate-activity')
_logger = logging.getLogger('annotate-activity')
+
_logger.setLevel(logging.DEBUG)
+
...
...
_logger.debug('starting activity')
_logger.debug('starting activity')
Line 24:
Line 26:
import logging.config
import logging.config
_logger = logging.getLogger('activity-annotate')
_logger = logging.getLogger('activity-annotate')
+
_logger.setLevel(logging.DEBUG)
...
...
#### Method: __init__, initialize this AnnotateActivity instance
#### Method: __init__, initialize this AnnotateActivity instance
Johannesponader
2
edits