Logger: {
LogLevelEnum: {
debug: number;
error: number;
info: number;
log: number;
none: number;
warn: number;
};
create: ((level?) => {
debug(...args) => number;
error(...args) => number;
getLogLevel() => "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args) => number;
log(...args) => number;
setLogLevel(lv) => void;
setTitle(title) => void;
warn(...args) => number;
});
debug(...args) => number;
error(...args) => number;
getLogLevel() => "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args) => number;
log(...args) => number;
setLogLevel(lv) => void;
setTitle(title) => void;
warn(...args) => 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?) => {
debug(...args) => number;
error(...args) => number;
getLogLevel() => "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args) => number;
log(...args) => number;
setLogLevel(lv) => void;
setTitle(title) => void;
warn(...args) => number;
})
- (level?): {
debug(...args) => number;
error(...args) => number;
getLogLevel() => "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args) => number;
log(...args) => number;
setLogLevel(lv) => void;
setTitle(title) => void;
warn(...args) => number;
} Parameters
level: "none" | "log" | "error" | "warn" | "info" | "debug" = 'warn'
Returns {
debug(...args) => number;
error(...args) => number;
getLogLevel() => "none" | "log" | "error" | "warn" | "info" | "debug";
info(...args) => number;
log(...args) => number;
setLogLevel(lv) => void;
setTitle(title) => void;
warn(...args) => number;
}
debug:function
- debug(...args): number
Returns number
error:function
- error(...args): number
Returns number
getLogLevel:function
- getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug"
Returns "none" | "log" | "error" | "warn" | "info" | "debug"
info:function
- info(...args): number
Returns number
log:function
- log(...args): number
Returns number
setLogLevel:function
- setLogLevel(lv): void
Parameters
lv: "none" | "log" | "error" | "warn" | "info" | "debug"
Returns void
setTitle:function
- setTitle(title): void
Returns void
warn:function
- warn(...args): number
Returns number
debug:function
- debug(...args): number
Returns number
error:function
- error(...args): number
Returns number
getLogLevel:function
- getLogLevel(): "none" | "log" | "error" | "warn" | "info" | "debug"
Returns "none" | "log" | "error" | "warn" | "info" | "debug"
info:function
- info(...args): number
Returns number
log:function
- log(...args): number
Returns number
setLogLevel:function
- setLogLevel(lv): void
Parameters
lv: "none" | "log" | "error" | "warn" | "info" | "debug"
Returns void
setTitle:function
- setTitle(title): void
Returns void
warn:function
- warn(...args): number
Returns number