UNPKG

koa-base-logger

Version:
24 lines (20 loc) 491 B
import { Middleware } from 'koa' import event from 'events' declare namespace logger { interface options { appName?: string automate?: boolean fileName?: string recordBody?: boolean root?: string } } declare namespace logger.options { interface dailyRotateFile { datePattern?: string maxFiles?: string maxSize?: string } } export declare function baseLogger(config?: logger.options): Middleware export declare const loggerError: event.EventEmitter