Skip to content

RotatingFileSinkOptions

RotatingFileSinkOptions<TData> = RotateLogFilesOptions & object

Defined in: packages/app-system/src/fs/rotating-file-sink.ts:17

optional cutOffFileSize?: number | null

The maximum size (in bytes) the file can reach before being rotated. Default is 10 MiB. Set to null to disable size-based rotation.

optional eol?: string

Appended after every non-null formatted line. Default "\n".

formatter: Formatter<TData>

optional maxFileAgeMs?: number | null

The maximum age (in milliseconds) the file can reach before being rotated. Default is null (disabled).

optional useCompression?: boolean

Whether to compress rotated files using gzip. Default false.

TData