import { Formatter } from "./Formatter"; import { LogFunction, NewLoggerOpts } from "./types"; import { Writer } from "./Writer"; /** * Pluggable logger, with support for different formatters and a single output. */ export declare class Logger { private infoFormatter; private errorFormatter; private writer; static defaults: NewLoggerOpts; /** * Construct the formmatters, writer and the logger based on the provided values */ static new({ logDepth, context, stream, isProduction }: NewLoggerOpts): Logger; constructor(infoFormatter: Formatter, errorFormatter: Formatter, writer: Writer); /** * Replace current used Writer with the provided one. * @param writer */ replaceWriter: (writer: Writer) => void; info: LogFunction; error: LogFunction; createChild(context: any): Logger; }