finam.tools.add_logging_level#
- finam.tools.add_logging_level(name, num, method=None)[source]#
Adds a logging level to the
logging
module.Examples
add_logging_level("TRACE", logging.DEBUG - 5)
- Parameters:
name (str) – The name of the new logging level.
num (int) – The numeric severity of the new logging level.
method (str, optional) – The method name for the new logging level. Defaults to lowercase of
name
.