interface PinoRollOptions {
    size?: string | number;
    frequency?: number | "daily" | "hourly";
}

Hierarchy (view full)

Properties

Properties

size?: string | number

The maximum size of a given rolling log file.

Can be combined with frequency. Use k, m and g to express values in KB, MB or GB.

Numerical values will be considered as MB.

'10MB'
frequency?: number | "daily" | "hourly"

The amount of time a given rolling log file is used. Can be combined with size.

Use daily or hourly to rotate file every day (or every hour). Existing file within the current day (or hour) will be re-used.

Numerical values will be considered as a number of milliseconds. Using a numerical value will always create a new file upon startup.

'daily'