def enable_log_to_stdout(logname):
 log = logging.getLogger(logname)
 log.setLevel(logging.DEBUG)
 ch = logging.StreamHandler()
 ch.setLevel(logging.DEBUG)
 formatter = logging.Formatter(u'%(asctime)s - %(name)s - %(levelname)s - %(message)s')
 ch.setFormatter(formatter)
 log.addHandler(ch)

def enable_log_to_stdout ( logname ) : log = logging . getLogger ( logname ) log . setLevel ( logging . DEBUG ) ch = logging . StreamHandler ( ) ch . setLevel ( logging . DEBUG ) formatter = logging . Formatter ( u'%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) ch . setFormatter ( formatter ) log . addHandler ( ch )
given a log name .