@cspell/eslint-plugin
Version:
24 lines • 671 B
text/typescript
export interface LoggerOptions {
logFile?: string;
cwd?: string;
/** true - write to file, false - output to console. */
logToFile?: boolean;
/** enable logging by default? */
enabled?: boolean;
useAsync?: boolean;
}
type Log = (...p: Parameters<typeof console.log>) => void;
export declare class Logger {
readonly options: LoggerOptions;
readonly logFile: string;
readonly cwd: string;
logToFile: boolean;
enabled: boolean;
useAsync: boolean;
constructor(options: LoggerOptions);
private _log;
log: Log;
}
export declare function getDefaultLogger(): Logger;
export {};
//# sourceMappingURL=logger.d.cts.map