@fjell/logging
Version:
Logging for Fjell
23 lines (22 loc) • 744 B
TypeScript
import * as LogFormat from "./LogFormat";
import * as LogLevel from "./LogLevel";
export interface Formatter {
getLogFormat: () => LogFormat.Config;
formatLog: (level: LogLevel.Config, coordinates: {
category: string;
components: string[];
}, payload: {
message: string;
data: any[];
}) => string;
timerMessage: (level: LogLevel.Config, coordinates: {
category: string;
components: string[];
}, payload: {
message: string;
data: any[];
}) => string;
}
export declare const createFormatter: (logFormat: LogFormat.Config) => Formatter;
export declare const getTextFormatter: () => Formatter;
export declare const getStructuredFormatter: () => Formatter;