mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-22 21:27:43 +08:00
update: log.py
This commit is contained in:
parent
bf51f5a83b
commit
980c8e6ee4
@ -20,7 +20,7 @@ def default_filter(record: "Record"):
|
|||||||
|
|
||||||
# DEBUG日志格式
|
# DEBUG日志格式
|
||||||
debug_format: str = (
|
debug_format: str = (
|
||||||
"<c>{time:YYYY-MM-DD}</c> <blue>{time:HH:mm:ss}</blue> "
|
"<c>{time:YYYY-MM-DD HH:mm:ss}</c> "
|
||||||
"<lvl>[{level.icon}]</lvl> "
|
"<lvl>[{level.icon}]</lvl> "
|
||||||
"<c><{name}.{module}.{function}:{line}></c> "
|
"<c><{name}.{module}.{function}:{line}></c> "
|
||||||
"{message}"
|
"{message}"
|
||||||
@ -28,7 +28,7 @@ debug_format: str = (
|
|||||||
|
|
||||||
# 默认日志格式
|
# 默认日志格式
|
||||||
default_format: str = (
|
default_format: str = (
|
||||||
"<c>{time:MM-DD}</c> <blue>{time:HH:mm:ss}</blue> "
|
"<c>{time:MM-DD HH:mm:ss}</c> "
|
||||||
"<lvl>[{level.icon}]</lvl> "
|
"<lvl>[{level.icon}]</lvl> "
|
||||||
"<c><{name}></c> "
|
"<c><{name}></c> "
|
||||||
"{message}"
|
"{message}"
|
||||||
|
Loading…
Reference in New Issue
Block a user