Logger: {
LogLevelEnum: {
debug: number;
error: number;
info: number;
log: number;
none: number;
warn: number;
};
create: ((level?: "none" | "log" | "error" | "warn" | "info" | "debug") => {
debug(...args: unknown[]): number;
error(...args: unknown[]): number;
getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args: unknown[]): number;
log(...args: unknown[]): number;
setLogLevel(lv: "none" | "log" | "error" | "warn" | "info" | "debug"): void;
setTitle(title: string): void;
warn(...args: unknown[]): number;
});
debug(...args: unknown[]): number;
error(...args: unknown[]): number;
getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args: unknown[]): number;
log(...args: unknown[]): number;
setLogLevel(lv: "none" | "log" | "error" | "warn" | "info" | "debug"): void;
setTitle(title: string): void;
warn(...args: unknown[]): number;
} = ...
Type declaration
-
LogLevelEnum: {
debug: number;
error: number;
info: number;
log: number;
none: number;
warn: number;
}
-
debug: number
-
error: number
-
info: number
-
log: number
-
none: number
-
warn: number
-
create: ((level?: "none" | "log" | "error" | "warn" | "info" | "debug") => {
debug(...args: unknown[]): number;
error(...args: unknown[]): number;
getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args: unknown[]): number;
log(...args: unknown[]): number;
setLogLevel(lv: "none" | "log" | "error" | "warn" | "info" | "debug"): void;
setTitle(title: string): void;
warn(...args: unknown[]): number;
})
-
- (level?: "none" | "log" | "error" | "warn" | "info" | "debug"): {
debug(...args: unknown[]): number;
error(...args: unknown[]): number;
getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args: unknown[]): number;
log(...args: unknown[]): number;
setLogLevel(lv: "none" | "log" | "error" | "warn" | "info" | "debug"): void;
setTitle(title: string): void;
warn(...args: unknown[]): number;
}
-
Parameters
-
level: "none" | "log" | "error" | "warn" | "info" | "debug" = 'warn'
Returns {
debug(...args: unknown[]): number;
error(...args: unknown[]): number;
getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args: unknown[]): number;
log(...args: unknown[]): number;
setLogLevel(lv: "none" | "log" | "error" | "warn" | "info" | "debug"): void;
setTitle(title: string): void;
warn(...args: unknown[]): number;
}
-
debug:function
- debug(...args: unknown[]): number
-
Returns number
-
error:function
- error(...args: unknown[]): number
-
Returns number
-
getLogLevel:function
- getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug"
-
Returns "none" | "log" | "error" | "warn" | "info" | "debug"
-
info:function
- info(...args: unknown[]): number
-
Returns number
-
log:function
- log(...args: unknown[]): number
-
Returns number
-
setLogLevel:function
- setLogLevel(lv: "none" | "log" | "error" | "warn" | "info" | "debug"): void
-
Parameters
-
lv: "none" | "log" | "error" | "warn" | "info" | "debug"
Returns void
-
setTitle:function
- setTitle(title: string): void
-
Returns void
-
warn:function
- warn(...args: unknown[]): number
-
Returns number
-
debug:function
- debug(...args: unknown[]): number
-
Returns number
-
error:function
- error(...args: unknown[]): number
-
Returns number
-
getLogLevel:function
- getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug"
-
Returns "none" | "log" | "error" | "warn" | "info" | "debug"
-
info:function
- info(...args: unknown[]): number
-
Returns number
-
log:function
- log(...args: unknown[]): number
-
Returns number
-
setLogLevel:function
- setLogLevel(lv: "none" | "log" | "error" | "warn" | "info" | "debug"): void
-
Parameters
-
lv: "none" | "log" | "error" | "warn" | "info" | "debug"
Returns void
-
setTitle:function
- setTitle(title: string): void
-
Returns void
-
warn:function
- warn(...args: unknown[]): number
-
Returns number