UNPKG

@visulima/pail

Version:

Highly configurable Logger for Node.js, Edge and Browser.

23 lines (19 loc) 811 B
import { FormatterFunction } from '@visulima/fmt'; import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './packem_shared/types-BGWAKixQ.mjs'; import { Rules, RedactOptions } from '@visulima/redact'; import '@visulima/colorize'; declare class MessageFormatterProcessor<L extends string = string> implements StringifyAwareProcessor<L> { #private; constructor(options?: { formatters?: Record<string, FormatterFunction>; }); setStringify(function_: any): void; process(meta: Meta<L>): Meta<L>; private _format; } declare class RedactProcessor<L extends string = string> implements Processor<L> { #private; constructor(rules?: Rules, options?: RedactOptions); process(meta: Meta<L>): Meta<L>; } export { MessageFormatterProcessor, RedactProcessor };