kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface LoggerConfig

    Configuration for the HTTP logger.

    interface LoggerConfig {
        level?: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "SILENT";
        transports?: LogTransport[];
        redaction?: RedactionConfig;
        sampleRate?: number;
        methods?: string[];
        statuses?: number[];
        excludeURLs?: RegExp[];
        context?: Record<string, unknown>;
        generateId?: () => string;
    }
    Index

    Properties

    level?: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "SILENT"

    Minimum level to log. Default: INFO

    transports?: LogTransport[]

    Log transports. Default: ConsoleTransport

    redaction?: RedactionConfig

    Redaction configuration

    sampleRate?: number

    Sampling rate 0–1 (1 = log everything). Default: 1

    Sampling is not deterministic — each request is evaluated independently. If the same request is logged multiple times (e.g., retries), it may be sampled differently each time.

    methods?: string[]

    Only log requests matching these methods. Empty = all.

    statuses?: number[]

    Only log responses with these status codes. Empty = all.

    excludeURLs?: RegExp[]

    URL patterns to exclude from logging

    context?: Record<string, unknown>

    Extra fields to merge into every log entry

    generateId?: () => string

    Custom request ID generator function