UNPKG

actionhero

Version:

The reusable, scalable, and quick node.js API server for stateless and stateful applications

23 lines (22 loc) 740 B
import * as winston from "winston"; import { ActionheroConfigInterface } from ".."; declare const namespace = "logger"; declare module ".." { interface ActionheroConfigInterface { [namespace]: ReturnType<(typeof DEFAULT)[typeof namespace]>; } } type ActionheroConfigLoggerBuilderArray = Array<(config: ActionheroConfigInterface) => winston.Logger>; export declare const DEFAULT: { logger: (config: ActionheroConfigInterface) => { loggers: ActionheroConfigLoggerBuilderArray; maxLogStringLength: number; maxLogArrayLength: number; }; }; export declare const test: { logger: (config: ActionheroConfigInterface) => { loggers: ActionheroConfigLoggerBuilderArray; }; }; export {};