title: Python Logger Issue - TypeError
body: <p>Im runnin a python script within my django app.</p>
  
  <pre><code>import logging,os,shelve
  
  def logging_setup(app='default'):
      """ basic logging setup """
      logfile = '/var/log/folder/'+app+'.log'
  
      logger = logging.getLogger(app)
      hdlr = logging.FileHandler(logfile)
      formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(message)s')
      hdlr.setFormatter(formatter)
      logger.addHandler(hdlr)
      logger.setLevel(logging.DEBUG)
  
      return loggerah man ive been slammed
  </code></pre>
  
  <p>However when I call this from within my code I get ..</p>
  
  <pre><code>    2014-11-26 15:24:56,977 [ERROR] 'ProcessAwareLogger' object is not callable
  Traceback (most recent call last):
    File "/staging/nx/views.py", line 40, in nx_input
      crawl_data = nx_runner.main(device=serializer.data["input"])
    File "/staging/nx/runner.py", line 101, in main
      self.import_to_mongo()
    File "/staging/nx/runner.py", line 69, in import_to_mongo
      mongo_import.import_all_devices()
    File "/staging/nx/parser.py", line 194, in import_all_devices
      device_model = self.import_device(d)
    File "/staging/nx/parser.py", line 158, in import_device
      self.dstoreimport(str(aggrs))
  TypeError: 'ProcessAwareLogger' object is not callable
  </code></pre>
  
  <p>I calling it via ....</p>
  
  <pre><code>self.dstoreimport = logging_setup(app="dataImportMongo")
  self.dstoreimport(str(aggrs))
  </code></pre>
  
  <p>Any ideas ..?</p>