()
Configure the logger to only log information and above logs.
Configure the logger to only log information and above logs.
Configure the logger to only log information and above logs .
def configure_logger_default():
    """Configure the logger to only log information and above logs."""
    logging.basicConfig()
    logger.setLevel(logging.INFO)
    logger_formatter = logging.Formatter(
        '[%(asctime)s] %(name)s/%(levelname)s %(message)s')
    for handler in logger.parent.handlers:
        handler.setFormatter(logger_formatter)
def configure_logger_default ( ) : logging . basicConfig ( ) logger . setLevel ( logging . INFO ) logger_formatter = logging . Formatter ( '[%(asctime)s] %(name)s/%(levelname)s %(message)s' ) for handler in logger . parent . handlers : handler . setFormatter ( logger_formatter )