mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-03-29 10:29:45 +08:00
feat: 日志时间里加上日期
This commit is contained in:
@@ -145,7 +145,7 @@ class XiaoMusic:
|
||||
|
||||
def setup_logger(self):
|
||||
log_format = f"%(asctime)s [{__version__}] [%(levelname)s] %(filename)s:%(lineno)d: %(message)s"
|
||||
date_format = "[%X]"
|
||||
date_format = "[%Y-%m-%d %H:%M:%S]"
|
||||
formatter = logging.Formatter(fmt=log_format, datefmt=date_format)
|
||||
logging.basicConfig(
|
||||
format=log_format,
|
||||
|
||||
Reference in New Issue
Block a user