def setup_logging():
 logger = logging.getLogger()
 logger.setLevel(LOG_LEVEL)
 fmt = logging.Formatter('[%(asctime)s] %(levelname)s: %(message)s')
 handler = logging.StreamHandler()
 handler.setFormatter(fmt)
 logger.addHandler(handler)

def setup_logging ( ) : logger = logging . getLogger ( ) logger . setLevel ( LOG_LEVEL ) fmt = logging . Formatter ( '[%(asctime)s] %(levelname)s: %(message)s' ) handler = logging . StreamHandler ( ) handler . setFormatter ( fmt ) logger . addHandler ( handler )
sets up the logging options for a log with supplied name .