UNPKG

@axiomhq/logging

Version:
20 lines (19 loc) 528 B
import { Transport } from './transport.js'; import { LogLevel } from '../logger.js'; interface FetchConfig { input: Parameters<typeof fetch>[0]; init?: Omit<Parameters<typeof fetch>[1], 'body'>; autoFlush?: boolean | { durationMs: number; }; logLevel?: LogLevel; } export declare class SimpleFetchTransport implements Transport { private fetchConfig; private events; private timer; constructor(config: FetchConfig); log: Transport['log']; flush(): Promise<void>; } export {};