class documentation

class InstanceLogger: (source)

View In Hierarchy

A logger adapter (wrapper) for :class:`.Identified` subclasses. This allows multiple instances (e.g. Engine or Pool instances) to share a logger, but have its verbosity controlled on a per-instance basis. The basic functionality is to return a logging level which is based on an instance's echo setting. Default implementation is: 'debug' -> logging.DEBUG True -> logging.INFO False -> Effective level of underlying logger ( logging.WARNING by default) None -> same as False

Method __init__ Undocumented
Method critical Delegate a critical call to the underlying logger.
Method debug Delegate a debug call to the underlying logger.
Method error Delegate an error call to the underlying logger.
Method exception Delegate an exception call to the underlying logger.
Method getEffectiveLevel What's the effective level for this logger?
Method info Delegate an info call to the underlying logger.
Method isEnabledFor Is this logger enabled for level 'level'?
Method log Delegate a log call to the underlying logger.
Method warning Delegate a warning call to the underlying logger.
Class Variable __slots__ Undocumented
Instance Variable echo Undocumented
Instance Variable logger Undocumented
Class Variable _echo Undocumented
Class Variable _echo_map Undocumented
def __init__(self, echo: _EchoFlagType, name: str): (source)

Undocumented

def critical(self, msg: str, *args: Any, **kwargs: Any): (source)

Delegate a critical call to the underlying logger.

def debug(self, msg: str, *args: Any, **kwargs: Any): (source)

Delegate a debug call to the underlying logger.

def error(self, msg: str, *args: Any, **kwargs: Any): (source)

Delegate an error call to the underlying logger.

def exception(self, msg: str, *args: Any, **kwargs: Any): (source)

Delegate an exception call to the underlying logger.

def getEffectiveLevel(self) -> int: (source)

What's the effective level for this logger?

def info(self, msg: str, *args: Any, **kwargs: Any): (source)

Delegate an info call to the underlying logger.

def isEnabledFor(self, level: int) -> bool: (source)

Is this logger enabled for level 'level'?

def log(self, level: int, msg: str, *args: Any, **kwargs: Any): (source)

Delegate a log call to the underlying logger. The level here is determined by the echo flag as well as that of the underlying logger, and logger._log() is called directly.

def warning(self, msg: str, *args: Any, **kwargs: Any): (source)

Delegate a warning call to the underlying logger.

__slots__: tuple[str, ...] = (source)

Undocumented

Undocumented

Undocumented

Undocumented

_echo_map = (source)

Undocumented