logging
frequenz.core.logging ¤
Logging tools.
Functions¤
frequenz.core.logging.get_public_logger ¤
Get a logger for the public module containing the given module name.
- Modules are considered private if they start with
_
. - All modules inside a private module are also considered private, even if they
don't start with
_
. - If there is no leading public part, the root logger is returned.
Example
Here are a few examples of how this function will resolve module names:
some.pub
->some.pub
some.pub._some._priv
->some.pub
some.pub._some._priv.public
->some.pub
some.pub._some._priv.public._private
->some.pub
_priv
->root
PARAMETER | DESCRIPTION |
---|---|
module_name
|
The fully qualified name of the module to get the logger for
(normally the
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Logger
|
The logger for the public module containing the given module name. |