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

    Interface AuditLoggerOptions

    Constructor options for AuditLogger.

    interface AuditLoggerOptions {
        requiredAuthToken?: string;
        retentionMs?: number;
        sensitiveKeys?: readonly string[];
        sinks?: AuditSink[];
    }
    Index

    Properties

    requiredAuthToken?: string

    Authorization token required to call getLogs(), queryLogs(), clear(), and eraseByUser(). When absent, those methods are unrestricted (suitable for testing).

    retentionMs?: number

    Maximum age of log entries in milliseconds (data retention enforcement)

    sensitiveKeys?: readonly string[]

    Top-level parameter keys treated as PII and redacted to '[REDACTED]'. Defaults to DEFAULT_SENSITIVE_KEYS.

    sinks?: AuditSink[]

    Extra write-only sinks (e.g. FileAuditSink, StructuredJsonSink). Replaces the default StderrAuditSink when provided.