c0
    Preparing search index...

    Interface FileLog

    A StreamWriter over a log file. Close when done.

    interface FileLog {
        batch(fn: (b: Builder) => void): void;
        close(): void;
        group(name: string, headers?: string[] | null): void;
        header(...names: string[]): void;
        record(...fields: string[]): void;
        recordArray(fields: string[]): void;
    }

    Hierarchy (View Summary)

    Index
    • Append several records under a single commit. The batch is atomic: a tear anywhere inside it discards the whole block.

      Parameters

      Returns void

    • Append a group preamble (GS + name) as a committed block.

      Parameters

      • name: string
      • Optionalheaders: string[] | null

      Returns void

    • Append an SOH header as a committed block.

      Parameters

      • ...names: string[]

      Returns void

    • Append one record as a committed block.

      Parameters

      • ...fields: string[]

      Returns void