magiclogger - v0.1.0
    Preparing search index...

    Interface BatchingOptions

    Configuration for transports that batch logs before sending.

    interface BatchingOptions {
        compress?: boolean;
        immediate?: boolean;
        maxBatchBytes?: number;
        maxBatchSize?: number;
        maxBatchTime?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    compress?: boolean

    Compress batches before sending (gzip).

    false
    
    immediate?: boolean

    Whether to send logs immediately without batching. Overrides other batch settings when true.

    false
    
    maxBatchBytes?: number

    Maximum size in bytes before sending a batch.

    1048576 (1MB)
    
    maxBatchSize?: number

    Maximum number of logs to batch before sending.

    100
    
    maxBatchTime?: number

    Maximum time to wait before sending a batch (milliseconds).

    5000 (5 seconds)