title: Python global logging
body: <p>How do I make a Logger global so that I can use it in every module I make?</p>
  
  <p>Something like this in moduleA:</p>
  
  <pre><code>import logging
  import moduleB
  
  log = logging.getLogger('')
  
  result = moduleB.goFigure(5)
  log.info('Answer was', result)
  </code></pre>
  
  <p>With this in moduleB:</p>
  
  <pre><code>def goFigure(integer):
      if not isinstance(integer, int):
          log.critical('not an integer')
      else:
          return integer + 1
  </code></pre>
  
  <p>Currently, I will get an error because moduleB does not know what <code>log</code> is.  How do I get around that?</p>