class documentation
class InstanceLogger: (source)
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 | get |
What's the effective level for this logger? |
Method | info |
Delegate an info call to the underlying logger. |
Method | is |
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 |
Undocumented |
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.