class documentation

class InstanceLogger(object):

View In Hierarchy

A logger adapter (wrapper) for .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 get​Effective​Level What's the effective level for this logger?
Method info Delegate an info call to the underlying logger.
Method is​Enabled​For 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 ​_echo​_map Undocumented
Instance Variable echo Undocumented
Instance Variable logger Undocumented
def __init__(self, echo, name):

Undocumented

def critical(self, msg, *args, **kwargs):
Delegate a critical call to the underlying logger.
def debug(self, msg, *args, **kwargs):
Delegate a debug call to the underlying logger.
def error(self, msg, *args, **kwargs):
Delegate an error call to the underlying logger.
def exception(self, msg, *args, **kwargs):
Delegate an exception call to the underlying logger.
def getEffectiveLevel(self):
What's the effective level for this logger?
def info(self, msg, *args, **kwargs):
Delegate an info call to the underlying logger.
def isEnabledFor(self, level):
Is this logger enabled for level 'level'?
def log(self, level, msg, *args, **kwargs):

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, *args, **kwargs):
Delegate a warning call to the underlying logger.
_echo_map =

Undocumented

echo =

Undocumented

logger =

Undocumented