title: Python root logger messages not being logged via handler configured with fileConfig
body: <p><strong>The Problem:</strong></p>
  
  <p>Given a logging config and a logger that employs that config, I see log messages from the script in which the log handler is configured, but not from the root logger, to which the same handler is assigned.</p>
  
  <p><strong>Details:</strong></p>
  
  <p>(Using Python 2.7)</p>
  
  <p>I have a module <code>my_mod</code> which instantiates a logger. <code>my_mod</code> has a function <code>my_command</code> which logs some messages using that logger. <code>my_mod</code> exists inside of a library <code>my_lib</code>, so I don't want to configure the logger with any handlers; as recommended, I want to leave the log handling to the developer using <code>my_mod</code>. <code>my_mod</code> looks like:</p>
  
  <pre><code>import logging
  
  LOGGER = logging.getLogger(__name__)
  
  def my_command():
      LOGGER.debug("This is a log message from module.py")
      print "This is a print statement from module.py"
  </code></pre>
  
  <p>I also have a python script <code>my_script.py</code>, which uses <code>my_mod.my_command</code>. <code>my_script.py</code> instantiates a logger, and in this case I do have handlers and formatters configured. <code>my_script.py</code> configures handlers and formatters using <code>fileConfig</code> and a config file that lives alongside <code>my_script.py</code>:</p>
  
  <pre><code>import os
  import logging
  import logging.config
  from my_mod.module import my_command
  
  logging.config.fileConfig('{0}/logging.cfg'.format(
      os.path.dirname(os.path.realpath(__file__))))
  LOGGER = logging.getLogger(__name__)
  
  LOGGER.debug("This is a log message from script.py")
  my_command()
  </code></pre>
  
  <p>From what I can tell, my config file appears to be set up correctly...</p>
  
  <pre><code>[loggers]
  keys=root,script
  
  [handlers]
  keys=consoleHandler
  
  [formatters]
  keys=simpleFormatter
  
  [logger_root]
  level=DEBUG
  handlers=consoleHandler
  
  [logger_script]
  level=DEBUG
  handlers=consoleHandler
  qualname=script
  propagate=0
  
  [handler_consoleHandler]
  class=StreamHandler
  level=DEBUG
  formatter=simpleFormatter
  args=(sys.stdout,)
  
  [formatter_simpleFormatter]
  format=%(asctime)s [%(levelname)s] %(name)s: %(message)s
  datefmt=
  </code></pre>
  
  <p>...but when I run <code>my_script.py</code> I get only the log line from <code>my_script.py</code>, and not the one from <code>my_mod.my_command</code>. I know that <code>my_command</code> is working, though, because the print statement in <code>my_command</code> after the debug log statement successfully prints to the console:</p>
  
  <pre><code>20:27 $ python script.py 
  2015-06-15 20:27:54,488 [DEBUG] __main__: This is a log message from script.py
  This is a print statement from module.py
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>NOTE: The example shows using debug, but even when I keep logging.cfg specifying <code>level=DEBUG</code> (I also tried <code>level=NOTSET</code>) for root logger and call <code>LOGGER.info(message)</code> in <code>my_command</code>, nothing is logged to the console.</p>