UNPKG

dmeditor

Version:

dmeditor is a block-style visual editor. Data is in json format.

24 lines (23 loc) 627 B
declare enum LogLevel { DEBUG = "DEBUG", INFO = "INFO", WARN = "WARN", ERROR = "ERROR" } declare class Logger { private static instance; private currentLevels; private levelEmojis; private constructor(); static getInstance(levels?: LogLevel[]): Logger; private log; debug(message: string): void; info(message: string): void; warn(message: string): void; error(message: string): void; setLevels(levels: LogLevel[]): void; addLevel(level: LogLevel): void; removeLevel(level: LogLevel): void; } declare const logger: Logger; export { Logger, LogLevel, logger };