ts-lit-plugin
Version:
Typescript plugin that adds type checking and code completion to lit-html
56 lines • 1.25 kB
TypeScript
export declare enum LoggingLevel {
OFF = 0,
ERROR = 1,
WARN = 2,
DEBUG = 3,
VERBOSE = 4
}
/**
* This class takes care of logging while fixing issues regarding the type script service logger.
* It logs to a file called "log.txt" in the root of this project.
*/
export declare class Logger {
level: LoggingLevel;
private logPath;
cwd: string;
/**
* Resets the log file.
*/
resetLogs(): void;
/**
* Logs if this.level >= DEBUG
* @param args
*/
debug(...args: any[]): void;
/**
* Logs if this.level >= ERROR
* @param args
*/
error(...args: any[]): void;
/**
* Logs if level >= WARN
* @param args
*/
warn(...args: any[]): void;
/**
* Logs if level >= VERBOSE
* @param args
*/
verbose(...args: any[]): void;
/**
* Appends a log if this.level > level
* @param level
* @param args
*/
private appendLogWithLevel;
/**
* Appends a log entry to the log file.
* @param prefix
* @param args
*/
private appendLog;
private getLogLevelPrefix;
private getLogLevelSeverityPrefix;
}
export declare const logger: Logger;
//# sourceMappingURL=logger.d.ts.map