()
return handler
日志配置
    :return:
日志配置
    :return:
日志配置 : return :
def config_log():
    """
    日志配置
    :return:
    """
    handler = SafeLog(filename=os.path.abspath('..') + r'/logs/' + 'logger', interval=1, backupCount=50, when="D",
                      encoding='UTF-8')

    handler.suffix = "%Y-%m-%d.log"
    logging_format = logging.Formatter('%(asctime)s - %(levelname)s - %(lineno)s - %(message)s')
    handler.setFormatter(logging_format)
    # handler.setLevel(logging.INFO)
    return handler
def config_log ( ) : handler = SafeLog ( filename = os . path . abspath ( '..' ) + r'/logs/' + 'logger' , interval = 1 , backupCount = 50 , when = "D" , encoding = 'UTF-8' ) handler . suffix = "%Y-%m-%d.log" logging_format = logging . Formatter ( '%(asctime)s - %(levelname)s - %(lineno)s - %(message)s' ) handler . setFormatter ( logging_format ) # handler.setLevel(logging.INFO) return handler