title: Elegant way to make logging.LoggerAdapter available to other modules
body: <p>I use a <code>LoggerAdapter</code> to let my python logging output Linux TIDs instead of the long unique IDs. But this way I don't modify an existing <code>logger</code> but I create a new object:</p>
  
  <pre><code>    new_logger = logging.LoggerAdapter(
                      logger=logging.getLogger('mylogger'), 
                      extra=my_tid_extractor())
  </code></pre>
  
  <p>Now I want this <code>LoggerAdapter</code> be used by certain modules. As long as I know a global variable being used as logger I can do something like this:</p>
  
  <pre><code>    somemodule.logger = new_logger
  </code></pre>
  
  <p>But this is not nice - it works only in a couple of cases and you need to know the logger variables used by the modules.</p>
  
  <p>Do you know a way to make a <code>LoggerAdapter</code> available globally e.g. by calling s.th. like</p>
  
  <pre><code>    logging.setLogger('mylogger', new_logger)
  </code></pre>
  
  <p><em>Or alternatively:</em> is there some other way to let Python <code>logging</code> output Linux thread IDs like printed by <code>ps</code>?</p>