UNPKG

@honeybadger-io/core

Version:
24 lines 863 B
import { Transport, Config, EventsLogger, EventPayload } from './types'; export declare class ThrottledEventsLogger implements EventsLogger { private readonly config; private transport; private queue; private isProcessing; private logger; constructor(config: Partial<Config>, transport: Transport); configure(opts: Partial<Config>): void; log(payload: EventPayload): void; flushAsync(): Promise<void>; private processQueue; private send; private makeHttpRequest; /** * todo: improve this * * The EventsLogger overrides the console methods to enable automatic instrumentation * of console logs to the Honeybadger API. * So if we want to log something in here we need to use the original methods. */ private originalLogger; } //# sourceMappingURL=throttled_events_logger.d.ts.map