UNPKG

openapi-modifier

Version:

This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules

34 lines (33 loc) 1.08 kB
import { LoggerI } from './interface'; type ValueOf<T> = T[keyof T]; declare class ConsoleLogger implements LoggerI { static typeLevelMap: { readonly trace: 0; readonly info: 1; readonly 'not-important-warning': 2; readonly warning: 3; readonly error: 4; readonly success: 5; }; static debugPrefix: string; private minLevel; private debug; private logsPrefix; constructor({ minLevel, name }: { minLevel?: ValueOf<typeof ConsoleLogger.typeLevelMap>; name?: string; }); private checkIsAllowed; private debugTrace; clone: (name: string) => ConsoleLogger; trace: (message: string, obj: any) => void; info: (message: string) => void; notImportantWarning: (message: string) => void; error: (error: Error, message?: string) => void; errorMessage: (message?: string) => void; warning: (message: string) => void; success: (message: string) => void; helpInfo: (message: string) => void; getHelpInfo: () => string; } export { ConsoleLogger };