bert-vits2-utils

This commit is contained in:
bing committed 2024-06-23 20:39:44 +08:00
1 parent 3f78fcb12c
commit 33c952d327
37 files changed
+137723 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
"""
logger封装
"""
from loguru import logger
import sys
# 移除所有默认的处理器
logger.remove()
# 自定义格式并添加到标准输出
log_format = (
"<g>{time:MM-DD HH:mm:ss}</g> <lvl>{level:<9}</lvl>| {file}:{line} | {message}"
)
logger.add(sys.stdout, format=log_format, backtrace=True, diagnose=True)