MHCXGraph.utils.logging_utils.VerboseLoggerAdapter¶
- class MHCXGraph.utils.logging_utils.VerboseLoggerAdapter(logger, extra=None)[source]¶
- __init__(logger, extra=None)¶
Initialize the adapter with a logger and a dict-like object which provides contextual information. This constructor signature allows easy stacking of LoggerAdapters, if so desired.
You can effectively pass keyword arguments as shown in the following example:
adapter = LoggerAdapter(someLogger, dict(p1=v1, p2=”v2”))
Methods
__init__(logger[, extra])Initialize the adapter with a logger and a dict-like object which provides contextual information.
critical(msg, *args, **kwargs)Delegate a critical call to the underlying logger.
debug(msg, *args, **kwargs)Delegate a debug call to the underlying logger.
error(msg, *args, **kwargs)Delegate an error call to the underlying logger.
exception(msg, *args[, exc_info])Delegate an exception call to the underlying logger.
getEffectiveLevel()Get the effective level for the underlying logger.
hasHandlers()See if the underlying logger has any handlers.
info(msg, *args, **kwargs)Delegate an info call to the underlying logger.
isEnabledFor(level)Is this logger enabled for level 'level'?
log(level, msg, *args, **kwargs)Delegate a log call to the underlying logger, after adding contextual information from this adapter instance.
process(msg, kwargs)Process the logging message and keyword arguments passed in to a logging call to insert contextual information.
setLevel(level)Set the specified level on the underlying logger.
vinfo(verbose_msg[, brief_msg])verbose_msg: message shown when verbose is ON brief_msg: message shown when verbose is OFF
warn(msg, *args, **kwargs)warning(msg, *args, **kwargs)Delegate a warning call to the underlying logger.
Attributes
managername