Naming Python loggers
I typically don’t use or find a need for class-level loggers, but I keep my modules at a few classes at most. A simple: import logging LOG = logging.getLogger(__name__) At the top of the module and subsequent: LOG.info(‘Spam and eggs are tasty!’) from anywhere in the file typically gets me to where I want to … Read more