MZhaovo's picture
Upload folder using huggingface_hub
ddb4de0
raw
history blame
272 Bytes
"""
logger封装
"""
from loguru import logger
import sys
# 移除所有默认的处理器
logger.remove()
# 自定义格式并添加到标准输出
log_format = "<g>{time:MM-DD HH:mm:ss}</g> [<lvl>{level}</lvl>] | {message}"
logger.add(sys.stdout, format=log_format)