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

    Interface AuditSink

    Pluggable audit sink interface.

    Implement this to create custom log destinations (files, SIEM, syslog …).

    class MyCustomSink implements AuditSink {
    write(entry: AuditLogEntry): void {
    myExternalSystem.send(entry);
    }
    }
    interface AuditSink {
        write(entry: AuditLogEntry): void | Promise<void>;
        clear?(authorization?: string): void;
        query?(filter: AuditFilter): AuditLogEntry[];
    }

    Implemented by

    Index

    Methods

    • Clear all entries. Implemented by in-memory sinks; write-only sinks omit this. The authorization parameter may be provided by callers; validation is the responsibility of the calling context (typically AuditLogger).

      Parameters

      • Optionalauthorization: string

      Returns void