You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example I have this project which contains log.py main.py core.py and I want to configure my logger in log.py and use it in main and core modules, what is the best practice? Any examples?
The text was updated successfully, but these errors were encountered:
You just have to do from loguru import logger in all of your modules.
I suggest the logger to be configured by the entry point of your application, which I assume is main.py.
This should have been included as part of official documentation. Wasted my time by many hours to search answer for this same question until I found this issue.
Strongly recommended for inclusion in official documentation.
For example I have this project which contains log.py main.py core.py and I want to configure my logger in log.py and use it in main and core modules, what is the best practice? Any examples?
The text was updated successfully, but these errors were encountered: