NuRadioReco.modules.base.module module
- NuRadioReco.modules.base.module.setup_logger(name='NuRadioReco', level=None)[source]
Set up the parent logger which all module loggers should pass their logs on to. Any handler which was previously added to the logger is cleared, and a single new logging.StreamHandler() with a custom formatter is added. Next to this, an extra logging level STATUS is added with level=`LOGGING_STATUS`, which is defined in module.py (as of February 2024, its value is 25). Then STATUS is also set as the default logging level.
Deprecated since version 2.3.0: module.setup_logger() will be removed in v2.4.0 and replaced by logging.setup_logger() from the NuRadioReco utilities folder.
- Parameters:
- namestr, default=”NuRadioReco”
The name of the base logger
- levelint, default=25
The logging level to use for the base logger