magiclogger - v0.1.0
    Preparing search index...

    Interface TransportConfig

    Transport configuration for dynamic creation. Base configuration interface that all transport configs extend.

    interface TransportConfig {
        enabled?: boolean;
        excludeTags?: string[];
        filter?: (entry: LogEntry) => boolean;
        format?: "json" | "plain" | "custom";
        formatter?: (entry: LogEntry) => string | Buffer<ArrayBufferLike>;
        level?: string;
        levels?: string[];
        name?: string;
        silent?: boolean;
        tags?: string[];
        timeout?: number;
        type: TransportType;
        [key: string]: unknown;
    }

    Hierarchy

    • Record<string, unknown>
      • TransportConfig

    Indexable

    • [key: string]: unknown
    Index

    Properties

    enabled?: boolean

    Whether the transport is enabled

    excludeTags?: string[]

    Tags to exclude

    filter?: (entry: LogEntry) => boolean

    Custom filter function

    format?: "json" | "plain" | "custom"

    Output format

    formatter?: (entry: LogEntry) => string | Buffer<ArrayBufferLike>

    Custom formatter

    level?: string

    Minimum log level to handle

    levels?: string[]

    Specific levels to handle (overrides level if provided)

    name?: string

    Optional transport name (auto-generated if not provided)

    silent?: boolean

    Silent mode

    tags?: string[]

    Tags to filter on

    timeout?: number

    Operation timeout

    Transport type identifier