UNPKG

@tryloop/oats

Version:

🌾 OATS - OpenAPI TypeScript Sync. The missing link between your OpenAPI specs and TypeScript applications. Automatically watch, generate, and sync TypeScript clients from your API definitions.

27 lines • 842 B
export declare enum LogLevel { DEBUG = "debug", INFO = "info", WARN = "warn", ERROR = "error" } export declare class Logger { private context; private static logLevel; private static logFile?; private static showTimestamps; private static useColors; constructor(context: string); static setLogLevel(level: LogLevel): void; static setShowTimestamps(show: boolean): void; static setUseColors(use: boolean): void; static setLogFile(filePath?: string): void; private shouldLog; private formatMessage; private logToFile; private colorize; debug(message: string, ...args: any[]): void; info(message: string, ...args: any[]): void; warn(message: string, ...args: any[]): void; error(message: string, ...args: any[]): void; } //# sourceMappingURL=logger.d.ts.map