title: Disable logging for a particular package
body: <p>I am implementing python logging in my application, and I want to be able to leverage the "default" root settings.  I want to use root settings because I dont want to have to define a logger per module in a config file.  </p>
  
  <p>When I turn on DEBUG level logging for the root logger, I am running into an issue with the QPID Python Client API. My log files get flooded with qpid debug statements:</p>
  
  <blockquote>
    <p>2011-03-16 09:16:18,664 - qpid.messaging.io.ops - DEBUG - SENT[8de6b2c]: ..</p>
    
    <p>2011-03-16 09:16:18,667 - qpid.messaging.io.raw - DEBUG - ..</p>
    
    <p>2011-03-16 09:16:18,668 - qpid.messaging.io.raw - DEBUG - READ[8de6b2c]: ..</p>
    
    <p>2011-03-16 09:16:18,668 - qpid.messaging.io.ops - DEBUG - ..</p>
  </blockquote>
  
  <p>Etc..</p>
  
  <p>So two main questions:</p>
  
  <p>1) Is there a way to enable* logging for just my modules without defining a logger per module? In other words is there a way to do shared "logger settings," so instead of having to define a logger_ section per logger is there a way to default the settings?</p>
  
  <p>Something like:</p>
  
  <pre><code>[logger_shared_settings]
      loggers = logger_A,logger_B,logger_C,logger_D
      level=DEBUG
  </code></pre>
  
  <p>2) Or How can i filter out the qpid package logging via a config file?  </p>
  
  <p>Here is the log.conf file:</p>
  
  <pre><code>[loggers]
  keys=root
  
  [handlers]
  keys=consoleHandler,fileHandler,nullHandler
  
  [formatters]
  keys=simpleFormatter
  
  [logger_root]
  level=DEBUG
  handlers=consoleHandler,fileHandler
  
  [handler_consoleHandler]
  class=StreamHandler
  level=DEBUG
  formatter=simpleFormatter
  args=(sys.stdout,)
  
  [handler_fileHandler]
  class=logging.handlers.RotatingFileHandler
  level=DEBUG
  formatter=simpleFormatter
  args=('out.log',)
  </code></pre>
  
  <hr>
  
  <p>Here was what I was trying to avoid:</p>
  
  <pre><code>[loggers]
  keys=root, a, b, c, d
  
  [handlers]
  keys=consoleHandler,fileHandler,nullHandler
  
  [formatters]
  keys=simpleFormatter
  
  [logger_root]
  level=ERROR
  handlers=nullHandler
  
  
  [logger_a]
  level=DEBUG
  handlers=consoleHandler,fileHandler
  
  
  [logger_b]
  level=DEBUG
  handlers=consoleHandler,fileHandler
  
  [logger_c]
  level=DEBUG
  handlers=consoleHandler,fileHandler
  </code></pre>