logging
#
Utilities to setup logging
Functions:
-
get_public_parent_module–Get the first public parent module of a module.
-
get_parent_logger–Returns the logger of the first public parent module of a module.
get_public_parent_module
#
Get the first public parent module of a module.
Parameters:
-
name(str) –The full name (e.g.
'mod_a.mod_b._mod_c') of the module.
Returns:
-
str–The full name of the first public parent module (e.g.
'mod_a.mod_b').
Source code in femto/md/utils/logging.py
get_parent_logger
#
Returns the logger of the first public parent module of a module.
Parameters:
-
name(str) –The full name (e.g.
'mod_a.mod_b._mod_c') of the module.
Returns:
-
Logger–The logger.