@sujalchoudhari/solaris-ui
Version:
A UI framework to create HTML pages with just JavaScript.
31 lines (30 loc) • 852 B
TypeScript
export declare enum LogLevel {
DEBUG = 0,
INFO = 1,
TIME = 2,
WARNING = 3,
ERROR = 4
}
/**
* Logger
* -----
* A simple logger class for logging messages to the console.
* @remarks
* Logger class stores logs into a ./logs folder.
*/
export default class Logger {
static logLevel: LogLevel;
private static mTime;
static debug(filename: string, ...message: string[]): void;
static info(filename: string, ...message: string[]): void;
static time(filename: string, ...message: string[]): void;
static warn(filename: string, ...message: string[]): void;
static error(filename: string, ...message: string[]): void;
private static write;
static start(): void;
/**
*
* @returns The time elapsed since the last call to Logger.start() in milliseconds
*/
static end(): number;
}