magiclogger - v0.1.0
    Preparing search index...

    Interface WorkerFileTransportOptions

    Configuration options for WorkerFileTransport.

    WorkerFileTransportOptions

    interface WorkerFileTransportOptions {
        bufferSize?: number;
        compress?: boolean;
        enabled?: boolean;
        filepath: string;
        flushInterval?: number;
        format?: "json" | "plain";
        maxFileSize?: number;
        name?: string;
    }
    Index

    Properties

    bufferSize?: number

    Buffer size in the worker.

    10000
    
    compress?: boolean

    Whether to compress rotated files.

    false
    
    enabled?: boolean

    Whether this transport is enabled.

    true
    
    filepath: string

    File path to write logs to.

    flushInterval?: number

    Flush interval in milliseconds.

    100
    
    format?: "json" | "plain"

    Format for log entries.

    'json'
    
    maxFileSize?: number

    Maximum file size before rotation (bytes).

    name?: string

    Transport name.