l.s.s.logger : module documentation

Part of lp.services.scripts

Logging setup for scripts.

Don't import from this module. Import it from lp.services.scripts.

Class OopsHandler Handler to log to the OOPS system.
Class LaunchpadFormatter logging.Formatter encoding our preferred output format.
Class LogLevelNudger Callable to adjust the global log level.
Function define_verbosity_options Define the -v and -q options on parser.
Function do_nothing Do absolutely nothing.
Function reset_root_logger Undocumented
Function _logger Create the actual logger instance, logging at the given level
Class _LogWrapper Changes the logger instance.
def define_verbosity_options(parser, default, verbose_callback, quiet_callback):
Define the -v and -q options on parser.
def do_nothing(*args, **kwargs):
Do absolutely nothing.
def reset_root_logger():
Undocumented
def _logger(level, out_stream, name=None, log_file=None, log_file_level=logging.DEBUG, milliseconds=False):
Create the actual logger instance, logging at the given level

if name is None, it will get args[0] without the extension (e.g. gina). 'out_stream must be passed, the recommended value is sys.stderr'

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.