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
In pytrousse repo, the rootLogger instance is used in each module.
This may prevent the pytrousse user to set up a custom logger for pytrousse package, without modifying the root logging instance.
A possible solution could be to create a unique custom logger for pytrousse package that is used by each module, inserting at the beginning of each module the following line:
logger=logging.getLogger(TROUSSE_LOGGER_NAME)
and replacing each root logging instance call with logger one.
For example:
logging.info("My message")
could be replaced by:
logger.info("My message")
The text was updated successfully, but these errors were encountered:
In
pytrousse
repo, theroot
Logger
instance is used in each module.This may prevent the
pytrousse
user to set up a custom logger forpytrousse
package, without modifying theroot
logging instance.A possible solution could be to create a unique custom logger for
pytrousse
package that is used by each module, inserting at the beginning of each module the following line:and replacing each
root
logging instance call withlogger
one.For example:
could be replaced by:
The text was updated successfully, but these errors were encountered: