UNPKG

@ply-ct/ply

Version:

REST API Automated Testing

23 lines (22 loc) 791 B
import { Log, LogOptions, LogLevel } from './log'; import { Storage } from './storage'; export declare const isLogger: (log: Log) => log is Logger; interface Options extends LogOptions { level: LogLevel; prettyIndent: number; } export declare class Logger implements Log { storage?: Storage | undefined; readonly isPlyLogger = true; enabled: boolean; readonly options: Options; constructor(options?: LogOptions, storage?: Storage | undefined, append?: boolean); log(message: string, obj?: any): void; log(level: LogLevel, message: string, obj?: any): void; info(message: string, obj?: any): void; error(message: string, obj?: any): void; debug(message: string, obj?: any): void; get level(): LogLevel; toString(): string; } export {};