Service that supplies loggers
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.
|
|
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 )
|
|