@axiomhq/logging
Version:
The official logging package for Axiom
20 lines (17 loc) • 495 B
text/typescript
import { LogLevel } from '../logger';
import { Transport } from './transport';
import { SimpleFetchTransport } from './fetch';
interface ProxyTransportConfig {
url: string;
autoFlush?: boolean | { durationMs: number };
logLevel?: LogLevel;
}
export class ProxyTransport extends SimpleFetchTransport implements Transport {
constructor(config: ProxyTransportConfig) {
super({
input: config.url,
autoFlush: config.autoFlush,
logLevel: config.logLevel,
});
}
}