js-logging/dist/api-log-appender.d.ts

19 lines
620 B
TypeScript
Raw Normal View History

import { LogMessage, LogLevel } from './log-message';
import LogAppender from './log-appender';
export declare class ApiLogAppender implements LogAppender {
readonly apiEndpoint: string;
authToken?: string | undefined;
batchSize: number;
minimumTimePassedInSec: number;
maximumTimePassedInSec: number;
threshold: LogLevel;
private http;
private msgBuffer;
private lastSent;
constructor(apiEndpoint: string, authToken?: string | undefined, threshold?: LogLevel);
appendMessage(msg: LogMessage): void;
private doPost;
private checkPost;
}
export default ApiLogAppender;