refactor: config使用QQ号区分

This commit is contained in:
linyuchen
2024-04-27 19:06:39 +08:00
parent 01bba0c3aa
commit ef4ad9a283
7 changed files with 44 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ export function setLogSelfInfo(selfInfo: SelfInfo) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
logConfig.appenders.FileAppender.layout.pattern = logConfig.appenders.ConsoleAppender.layout.pattern =
`%d{yyyy-MM-dd hh:mm:ss} [%p] ${selfInfo.nick || selfInfo.uin}(${selfInfo.uin}) %m`;
`%d{yyyy-MM-dd hh:mm:ss} [%p] ${selfInfo.nick}(${selfInfo.uin}) %m`;
log4js.configure(logConfig);
}