In log4net we can change the log level in the xml config file on runtime from DEBUG to ERROR for example and the change take effect immediately.
is there a way to do it in python? i haven't figured out yet how to do it.
In addition, for some reason, when the logging file is set without any folder (see example of the config i use at the bottom - yaml dictionary config file), it fails to rotate files. if i change it to be at any other path other the one that the code is in, it works like a charm and 20 files get created. i will be happy to get any help. thanks!
dictionary config extract example:
rotatingFile:
class : logging.handlers.RotatingFileHandler
formatter: jajahFormater
level: DEBUG
filename: chs.log
maxBytes: 20
backupCount: 20