UNPKG

strogger

Version:

📊 A modern structured logging library with functional programming, duck-typing, and comprehensive third-party integrations

32 lines • 952 B
import type { Formatter, LogEntry } from "../types"; import { LogLevel } from "../types"; export interface ElasticsearchTransportOptions { formatter?: Formatter; level?: LogLevel; url?: string; username?: string; password?: string; apiKey?: string; index?: string; indexPattern?: string; batchSize?: number; flushInterval?: number; timeout?: number; } export declare const createElasticsearchTransport: (options?: ElasticsearchTransportOptions) => { log: (entry: LogEntry) => Promise<void>; setLevel: (level: LogLevel) => void; getLevel: () => LogLevel; flush: () => Promise<void>; close: () => Promise<void>; getConfig: () => { url: string; index: string; indexPattern: string; batchSize: number; flushInterval: number; timeout: number; }; getCurrentIndex: () => string; }; //# sourceMappingURL=elasticsearch-transport.d.ts.map