UNPKG

@axiomhq/winston

Version:
22 lines 757 B
/// <reference types="node" /> import Transport, { TransportStreamOptions } from 'winston-transport'; import { AxiomWithoutBatching } from '@axiomhq/js'; export interface WinstonOptions extends TransportStreamOptions { dataset?: string; token: string; orgId?: string; url?: string; onError?: (err: Error) => void; } export declare class WinstonTransport extends Transport { client: AxiomWithoutBatching; dataset: string; batch: object[]; batchCallback: (err: Error | null) => void; batchTimeoutId?: NodeJS.Timeout; constructor(opts: WinstonOptions); log(info: any, callback: () => void): void; private request; flush(callback?: (err: Error | null) => void): void; } //# sourceMappingURL=index.d.ts.map