Table of Contents

Class: ILoggingService ./src/peak/running/logs.py

A service that supplies loggers

Base Classes   
protocols.Interface
Methods   
getLevelFor
getLevelName
getLogger
  getLevelFor 
getLevelFor ( ob,  default=NOT_GIVEN )

Get a level integer for ob, or return default

If ob is in fact a number (i.e. adding 0 to it works), return as-is. If ob is a string representation of an integer, return numeric value, so that functions which want to accept either numbers or level names can do so by calling this converter.

If no conversion can be found, and no default is specified, raise LookupError.

  getLevelName 
getLevelName ( lvl,  default=NOT_GIVEN )

Get a name for integer lvl, or return default

If lvl is not a recognized level, and default is not given, return str(lvl).

  getLogger 
getLogger ( name='' )

Get an ILogger for name


Table of Contents

This document was automatically generated on Mon Apr 15 01:11:03 2024 by HappyDoc version 2.1