strogger
Version:
📊 A modern structured logging library with functional programming, duck-typing, and comprehensive third-party integrations
31 lines • 928 B
TypeScript
import type { Formatter, LogEntry } from "../types";
import { LogLevel } from "../types";
export interface SplunkTransportOptions {
formatter?: Formatter;
level?: LogLevel;
hecUrl?: string;
hecToken?: string;
source?: string;
sourcetype?: string;
index?: string;
batchSize?: number;
flushInterval?: number;
channel?: string;
}
export declare const createSplunkTransport: (options?: SplunkTransportOptions) => {
log: (entry: LogEntry) => Promise<void>;
setLevel: (level: LogLevel) => void;
getLevel: () => LogLevel;
flush: () => Promise<void>;
close: () => Promise<void>;
getConfig: () => {
hecUrl: string | undefined;
source: string;
sourcetype: string;
index: string | undefined;
channel: string | undefined;
batchSize: number;
flushInterval: number;
};
};
//# sourceMappingURL=splunk-transport.d.ts.map