mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +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";
|
let logFilePath = "./logs/app.log";
|
||||||
export function resetLogConfigure() {
|
export function resetLogConfigure() {
|
||||||
@@ -29,6 +29,8 @@ export function buildLogger(write: (text: string) => void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type ILogger = {
|
export type ILogger = {
|
||||||
|
readonly category: string;
|
||||||
|
level: Level | string;
|
||||||
log(level: Level | string, ...args: any[]): void;
|
log(level: Level | string, ...args: any[]): void;
|
||||||
|
|
||||||
isLevelEnabled(level?: string): boolean;
|
isLevelEnabled(level?: string): boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user