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:
In
pytrousse
repo, theroot
Logger
instance is used in each module. This may prevent thepytrousse
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: