European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Class FileAuditSink

    Appends audit entries as newline-delimited JSON (NDJSON) to a file.

    Log rotation: when the file reaches maxSizeBytes, it is renamed to <filePath>.<timestamp>.bak before the new entry is written.

    The log file should be stored on a volume with restricted write permissions; only the server process account should have write access.

    0.9.0

    Implements

    Index

    Constructors

    Properties

    filePath: string
    maxSizeBytes: number
    writeQueue: Promise<void> = ...

    Serialises concurrent write calls so that stat + rename + appendFile sequences never interleave across parallel log() invocations.

    Methods