Skip to content

Commit

Permalink
在日志输出中显示文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Nov 3, 2023
1 parent 32504f7 commit a9eafcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arknights_mower/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import colorlog
from . import config

BASIC_FORMAT = '%(asctime)s - %(levelname)s - %(relativepath)s:%(lineno)d - %(funcName)s - %(message)s'
COLOR_FORMAT = '%(log_color)s%(asctime)s - %(levelname)s - %(relativepath)s:%(lineno)d - %(funcName)s - %(message)s'
BASIC_FORMAT = '%(asctime)s - %(levelname)s - %(pathname)s:%(lineno)d - %(funcName)s - %(message)s'
COLOR_FORMAT = '%(log_color)s%(asctime)s - %(levelname)s - %(pathname)s:%(lineno)d - %(funcName)s - %(message)s'
DATE_FORMAT = None
basic_formatter = logging.Formatter(BASIC_FORMAT, DATE_FORMAT)
color_formatter = colorlog.ColoredFormatter(COLOR_FORMAT, DATE_FORMAT)
Expand Down

0 comments on commit a9eafcd

Please sign in to comment.