Python: custom logging across all modules
If you want to change root logger you could just use getLogger() everywhere, with no arguments. Regarding the instance setup only in the main module, you can instantiate your logger, add your own Handler, and use it in all the other submodules (as I did bellow). I created a class that inherits the StreamHandler in … Read more