openapi-modifier
Version:
This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules
20 lines (19 loc) • 610 B
TypeScript
import { LoggerI } from "./interface";
type ValueOf<T> = T[keyof T];
export type LoggerFactoryTypeLevel = ValueOf<typeof LoggerFactory.typeLevelMap>;
declare class LoggerFactory {
static typeLevelMap: {
readonly trace: 0;
readonly info: 1;
readonly 'not-important-warning': 2;
readonly warning: 3;
readonly error: 4;
readonly success: 5;
};
static createLogger({ minLevel, name, verbose, }: {
minLevel: ValueOf<typeof LoggerFactory.typeLevelMap>;
name?: string;
verbose?: boolean;
}): LoggerI;
}
export { LoggerFactory };