id_translation.logging#
Logging utilities; see Logging for help.
Module Attributes
Set to enable additional |
|
Root logger instance. |
Functions
Verbose logging context. |
|
|
Generate a new task ID. |
|
Construct event_key value. |
- ENABLE_VERBOSE_LOGGING = False#
Set to enable additional
DEBUG-level messages.The default (
False) is controlled by theID_TRANSLATION_VERBOSEvariable. Useenable_verbose_debug_messages()to enable temporarily.
- LOGGER = <Logger id_translation (WARNING)>#
Root logger instance.
Level is set to
logging.WARNING=30by default (orDEBUGifENABLE_VERBOSE_LOGGINGis set). See Logging for details.
- enable_verbose_debug_messages()[source]#
Verbose logging context.
Temporarily set
ENABLE_VERBOSE_LOGGING=Trueandlogger.getLogger('id_translation')level toDEBUG.>>> from id_translation.mapping import Mapper >>> from id_translation.logging import enable_verbose_debug_messages >>> with enable_verbose_debug_messages(): ... Mapper().apply("ab", candidates="abc")