Python root logger has default level warning.
With the current example, info and debug log will get filtered out
we should have additional line such as logging.getLogger().setLevel(logging.NOTSET), so that all logs are processed
|
logging.getLogger().addHandler(handler) |