zeed
    Preparing search index...

    Interface LogFileHandlerOptions

    interface LogFileHandlerOptions {
        colors?: boolean;
        fill?: number;
        filter?: string;
        level?: number;
        levelHelper?: boolean;
        nameBrackets?: boolean;
        padding?: number;
        pretty?: boolean;
        rotation?: LogRotationOptions;
        stack?: number | boolean;
        time?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    colors?: boolean
    fill?: number
    filter?: string
    level?: number
    levelHelper?: boolean
    nameBrackets?: boolean
    padding?: number
    pretty?: boolean

    Optional rotation options for log files. When provided, enables automatic log rotation. Can be:

    • true: Use default rotation settings (10MB size, 5 files, gzip compression)
    • Rotation options object: Customize rotation behavior
    • Shortcut strings: 'daily' | 'weekly' | 'monthly' | 'size'

    Examples:

    • Enable with defaults: { rotation: true }
    • Rotate daily: { rotation: { interval: '1d' } }
    • Rotate when file reaches 10MB: { rotation: { size: '10M' } }
    • Keep max 5 files: { rotation: { maxFiles: 5 } }
    • Compress rotated files: { rotation: { compress: 'gzip' } }
    stack?: number | boolean
    time?: boolean