UNPKG

@maximai/maxim-js

Version:

Maxim AI JS SDK. Visit https://getmaxim.ai for more info.

27 lines (26 loc) 725 B
import { CommitLog } from "./components/types"; import { ILogWriter } from "./types"; /** * A writer that captures CommitLogs instead of sending them. * Used by LogLine to generate log lines using the actual container classes. */ export declare class CaptureWriter implements ILogWriter { private _logs; readonly raiseExceptions: boolean; /** * Captures a commit log instead of sending it. */ commit(log: CommitLog): void; /** * Returns all captured logs and clears the internal buffer. */ drain(): CommitLog[]; /** * Returns all captured logs without clearing. */ get logs(): CommitLog[]; /** * Clears all captured logs. */ clear(): void; }