title: Python: logging disapears when in django shell
body: <p><strong>Running:</strong> Python 3.3 in virtualenv, Windows 7, Django 1.6.5</p>
  
  <p><strong>Background:</strong> I am working on a Django project currently.  The projects directory has a python file <code>logManager.py</code> that configs the logging module, creates a root logging instance, which is then imported by the various modules:</p>
  
  <pre><code>import logging
  
  logging.basicConfig(level=logging.DEBUG,
                  filename='logFile.log',
                  format='%(asctime)-25s - %(levelname)-8s - %(name)-12s - %(message)s',
                  filemode = 'w' # this makes the file clear before each new process
                  )
  
  logger = logging.getLogger('custom')
  </code></pre>
  
  <p>All of the modules that use this logger import it like this:</p>
  
  <pre><code> from logManager.py import logger
  </code></pre>
  
  <p>Now I have an API module that's in a completely different directory, but it makes calls on the Django project.  It also has a config of the logging module.  This used to be in a separate file, but I recently added it to the api module itself, <code>logRequests.py</code>.  Here's the logging config code:</p>
  
  <pre><code>import logging
  
  logging.basicConfig(level=logging.DEBUG,
                  filename='C:\\SeleniumTests\\APILogFile.txt',
                  format='%(asctime)-25s - %(levelname)-8s - %(name)-12s - %(message)s'
                  )
  
  libraryLogger = logging.getLogger('')
  </code></pre>
  
  <p><strong>Problem:</strong> When I use the django shell, <code>python manage.py shell</code>, which I understand to be basically just like a python shell with one configuration variable set, all of my logging method calls are not actually printing to the <code>APILogFile.txt</code>, they must be getting hijacked somewhere by another instance of the <code>logging</code> module. None of the calls throw errors or exceptions or anything, they just don't end up in the log file.  It's almost like they're being told to print somewhere else. </p>
  
  <p>What can I do?</p>