old_contents: '''
  Created on Jan 16, 2012
  
  @package: Newscoop
  @copyright: 2011 Sourcefabric o.p.s.
  @license: http://www.gnu.org/licenses/gpl-3.0.txt
  @author: Gabriel Nistor
  
  Provides the application logging setup.
  '''
  
  import logging
  #logging.basicConfig(format='%(asctime)s %(levelname)s (%(threadName)s %(module)s.%(funcName)s %(lineno)d): %(message)s')
  logging.basicConfig(format='%(module)s.%(funcName)s %(lineno)d: %(message)s')
  
  logging.getLogger('ally').setLevel(logging.WARN)
  logging.getLogger('cherrypy').setLevel(logging.WARN)
  
  logging.getLogger('ally.core.impl.proccesor').setLevel(logging.DEBUG)
  
  # SQL Alchemy ----------------------------------------------------------
  logging.getLogger('sqlalchemy.engine').setLevel(logging.DEBUG)
  #logging.getLogger('sqlalchemy.dialects').setLevel(logging.WARN)
  #logging.getLogger('sqlalchemy.pool').setLevel(logging.WARN)
  #logging.getLogger('sqlalchemy.orm').setLevel(logging.DEBUG)
  
new_contents: '''
  Created on Jan 16, 2012
  
  @package: Newscoop
  @copyright: 2011 Sourcefabric o.p.s.
  @license: http://www.gnu.org/licenses/gpl-3.0.txt
  @author: Gabriel Nistor
  
  Provides the application logging setup.
  '''
  
  import logging
  #logging.basicConfig(format='%(asctime)s %(levelname)s (%(threadName)s %(module)s.%(funcName)s %(lineno)d): %(message)s')
  logging.basicConfig(format='%(module)s.%(funcName)s %(lineno)d: %(message)s')
  
  logging.getLogger('ally').setLevel(logging.WARN)
  logging.getLogger('cherrypy').setLevel(logging.WARN)
  
  logging.getLogger('ally.core.impl.proccesor').setLevel(logging.DEBUG)
  
  # SQL Alchemy ----------------------------------------------------------
  #logging.getLogger('sqlalchemy.engine').setLevel(logging.DEBUG)
  #logging.getLogger('sqlalchemy.dialects').setLevel(logging.WARN)
  #logging.getLogger('sqlalchemy.pool').setLevel(logging.WARN)
  #logging.getLogger('sqlalchemy.orm').setLevel(logging.DEBUG)
  
subject: reset default logging configuration