legions-thirdparty-plugin
Version:
21 lines (20 loc) • 565 B
TypeScript
export interface LoggerOptions {
id: string;
enabled: boolean;
}
export declare class Logger {
static instances: {
[key: string]: Logger;
};
private readonly id;
private readonly enabled;
private readonly start;
constructor({ id, enabled }: LoggerOptions);
debug(...args: any): void;
getTime(): number;
static create(options: LoggerOptions): void;
static destroy(id: string): void;
static getInstance(id: string): Logger;
info(...args: any): void;
error(...args: any): void;
}