4 ms·
The logging decorator uses: logging.getLogger() when it should be using: logging.getLogger(cls.__module__) or even: logging.getLogger(cls.__module_
by compressedgas 4y ago
The logging decorator uses:
logging.getLogger()
when it should be using:
logging.getLogger(cls.__module__)
or even:
logging.getLogger(cls.__module__ + '.' + cls.__name__)
if you want a different logger for each class so that you can enable or disable logging on a class basis.