def init_console_logging():
 formatter = logging.Formatter('%(asctime)s [%(name)s] %(levelname)s: %(message)s')
 ch = ConsoleHandler()
 ch.setFormatter(formatter)
 log.addHandler(ch)
 log.setLevel(logging.INFO)

def init_console_logging ( ) : formatter = logging . Formatter ( '%(asctime)s [%(name)s] %(levelname)s: %(message)s' ) ch = ConsoleHandler ( ) ch . setFormatter ( formatter ) log . addHandler ( ch ) log . setLevel ( logging . INFO )
initializes logging only to console .