diff --git a/arknights_mower/utils/log.py b/arknights_mower/utils/log.py index f93346d95..c3be22e03 100644 --- a/arknights_mower/utils/log.py +++ b/arknights_mower/utils/log.py @@ -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)