v2
xiaojunnuo 2025-09-06 00:28:43 +08:00
parent 02ab343e22
commit 8bb7e8bfb2
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import log4js, { CallStack, Level } from "log4js";
import log4js, { CallStack, Level, Logger } from "log4js";
let logFilePath = "./logs/app.log";
export function resetLogConfigure() {
@ -29,6 +29,8 @@ export function buildLogger(write: (text: string) => void) {
}
export type ILogger = {
readonly category: string;
level: Level | string;
log(level: Level | string, ...args: any[]): void;
isLevelEnabled(level?: string): boolean;