Table of Contents

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

Service that supplies loggers

Base Classes   
binding.Component
Methods   
getLevelFor
getLevelName
getLogger
nameForLevel
  getLevelFor 
getLevelFor (
        self,
        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.

Exceptions   
LookupError( "No such log level", ob )
  getLevelName 
getLevelName (
        self,
        lvl,
        default=NOT_GIVEN,
        )

Get a name for lvl, or return default

If default is not given, return "Level %s" % lvl, for symmetry with the logging package.

  getLogger 
getLogger ( self,  name='' )

Get an ILogger for name

Exceptions   
exceptions.InvalidName( "%r is not a plain property name" % name )
  nameForLevel 
nameForLevel ( self )


Table of Contents

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