mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
chore:
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user