@fjell/logging
Version:
Logging for Fjell
19 lines (18 loc) • 632 B
TypeScript
import { Formatter } from "./formatter";
import * as LogLevel from "./LogLevel";
export interface Writer {
write: (level: LogLevel.Config, coordinates: {
category: string;
components: string[];
}, payload: {
message: string;
data: any[];
}) => void;
}
export interface WriterOptions {
respectInjectedMethod?: boolean;
errorMethod?: (...args: any[]) => void;
warningMethod?: (...args: any[]) => void;
infoMethod?: (...args: any[]) => void;
}
export declare const createWriter: (formatter: Formatter, logMethod: (...args: any[]) => void, options?: WriterOptions) => Writer;