refactor: sent msg log

This commit is contained in:
linyuchen
2024-04-28 19:34:16 +08:00
parent e307b289ae
commit 4f90bc7813
4 changed files with 37 additions and 15 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}) %m`;
`%d{yyyy-MM-dd hh:mm:ss} [%p] ${selfInfo.nick}(${selfInfo.uin}) %m`;
log4js.configure(logConfig);
}