I would like to set up a logging hierarchy for my project using python's logging module and the dot '.' name structure described here: https://docs.python.org/2/library/logging.html#logging.getLogger
For a given module (bar.py), I would like to set up the logger something like:
log = logging.getLogger('x.bar')
Where I can then use log.(debug/info/warning/etc...) throughout the bar.py module. I know that bar.py will never be run directly, but functions within it could possibly be called from several other modules - so I don't know advance what to set 'x' to in the code snippet. I want bar.py to inherit the logging handlers and formatters from it's caller (x).