/** * @public * * A list of logger's log level. These levels are sorted in * order of increasing severity. Each log level includes itself and all * the levels behind itself. * * @example `new Logger({logLevel: 'warn'})` will print all the warn and error * message. */ export type LogLevel = "all" | "trace" | "debug" | "log" | "info" | "warn" | "error" | "off"; /** * @public * * An object consumed by Logger constructor to initiate a logger object. */ export interface LoggerOptions { logger?: Logger; logLevel?: LogLevel; } /** * @public * * Represents a logger object that is available in HandlerExecutionContext * throughout the middleware stack. */ export interface Logger { trace?: (...content: any[]) => void; debug: (...content: any[]) => void; info: (...content: any[]) => void; warn: (...content: any[]) => void; error: (...content: any[]) => void; }