refactor: config使用QQ号区分

This commit is contained in:
linyuchen committed 2024-04-27 19:06:39 +08:00
1 parent eb7fafeabf
commit c90ffbeb62
7 files changed
+44 -11

No files matched your search

+1 -1
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);
}