I want to improve my understanding of how to use logging correctly in Python. I want to use .ini file to configure it and what I want to do:
- define basic logger config through
.fileConfig(...)in some.pyfile import logger, calllogger = logging.getLogger(__name__)across the app and be sure that it uses my config file that I was loaded recently in different.pyfile
I read few resources over Internet ofc but they are describing tricks of how to configure it etc, but want I to understand is that .fileConfig works across all app or works only for file/module where it was declared.
Looks like I missed some small tip or smth like that.