title: Incompatibility between import-time logger naming with logging configuration
body: <p>I am setting up my Python logging in main.py via reading in a file and using the <a href="http://docs.python.org/library/logging.config.html" rel="nofollow">fileConfig</a> option. I want to be able to switch between testing and live logging configurations, so I want to read in a separate config file first and extract the logging config file path from there.</p>
  
  <p>The problem here is that other files that I import from main.py grab their own logger via <code>log = getLogger(__name__)</code>, and this happens at import time. These links then get broken when the new configuration is loaded in, and these modules end up without the logging working the way I expect.</p>
  
  <p>I can't easily delay the importing of these modules without a lot of refactoring, so is there any other way of being able to keep this method of setting up loggers by module name while still loading in the log configuration later?</p>