UNPKG

1.09 kBTypeScriptView Raw
1import { ProgressLog } from "@atomist/sdm/spi/log/ProgressLog";
2import { AxiosInstance } from "axios";
3import { WrapOptions } from "retry";
4/**
5 * Post log to Atomist Rolar service for it to persist
6 */
7export declare class RolarProgressLog implements ProgressLog {
8 private readonly rolarBaseUrl;
9 private readonly logPath;
10 private readonly bufferSizeLimit;
11 private readonly timerInterval;
12 private readonly logLevel;
13 private readonly timestamper;
14 private readonly retryOptions;
15 private readonly axiosInstance;
16 private localLogs;
17 private readonly timer;
18 constructor(rolarBaseUrl: string, logPath: string[], bufferSizeLimit?: number, timerInterval?: number, logLevel?: string, timestamper?: Iterator<Date>, retryOptions?: WrapOptions, axiosInstance?: AxiosInstance);
19 readonly name: string;
20 readonly url: string;
21 isAvailable(): Promise<boolean>;
22 write(what: string): void;
23 flush(): Promise<any>;
24 close(): Promise<any>;
25 private postLogs;
26 private constructUtcTimestamp;
27}
28//# sourceMappingURL=RolarProgressLog.d.ts.map
\No newline at end of file