@axiomhq/logging
Version:
The official logging package for Axiom
20 lines (19 loc) • 530 B
text/typescript
import { Transport } from './transport.cjs';
import { LogLevel } from '../logger.cjs';
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 {};