# Interface PinoRollOptions

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

#### Hierarchy (view full)

- PinoRollOptions
  - FileOptions

- Defined in src/types.ts:136

#####
Index

### Properties

size?
frequency?

##
Properties

### `Optional` size

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.

#### Default

    '10MB'

- Defined in src/types.ts:146

### `Optional` frequency

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.

#### Default

    'daily'

- Defined in src/types.ts:156