gypsum
Version:
Simple and easy lightweight typescript server side framework on Node.js.
26 lines (25 loc) • 798 B
TypeScript
export declare type LoggerLevels = "error" | "warn" | "info" | "debug" | "all";
export interface ILoggerOptions {
[key: string]: {
level: LoggerLevels[];
log?: LoggerLevels[];
};
}
export declare class Logger {
private _ns;
private _logDir;
private _levels;
private _logOptions;
private _active;
constructor(ns: string);
static SetOptions(opt?: ILoggerOptions | null, logOutPath?: string): void;
static Error(...args: any[]): void;
static Warn(...args: any[]): void;
static Info(...args: any[]): void;
static Debug(...args: any[]): void;
error(...args: any[]): void;
warn(...args: any[]): void;
info(...args: any[]): void;
debug(...args: any[]): void;
private _log(level?, ...args);
}