l.s.s.l._LogWrapper : class documentation

Part of lp.services.scripts.logger View In Hierarchy

Changes the logger instance.

Other modules will do 'from lp.services.scripts import log'. This wrapper allows us to change the logger instance these other modules use, by replacing the _log attribute. This is done each call to logger()

Method __init__ Undocumented
Method __getattr__ Undocumented
Method __setattr__ Undocumented
Method use Temporarily use a different log.
Method shortException Like Logger.exception, but does not print a traceback.
def __init__(self, log):
Undocumented
def __getattr__(self, key):
Undocumented
def __setattr__(self, key, value):
Undocumented
@contextmanager
def use(self, log):
Temporarily use a different log.
def shortException(self, msg, *args):
Like Logger.exception, but does not print a traceback.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.