Is the logger not working properly?
When using log
from logger.py
to print statements, the only levels working are log.warning
log.error
and log.critical
.
One needs to use the level
function in logger.py
to change the log_level
so the other warnings can work.
Depending on the value of the level('<value>')
, the log_levels below the value will work, but not those above:
Here only the last 2 log_levels
work and not debug
, info
or warning
:
I guess it is because the level is set to warning
in line 136 of logger.py
, so maybe it would be good to change it to set_level_debug()
so all levels can be used?
Or maybe this is a functionality of the logging package which I was unaware of, in this case there is no problem.
I just wanted to point it out.