RotatingFileSinkOptions
RotatingFileSinkOptions<
TData> =RotateLogFilesOptions&object
Defined in: packages/app-system/src/fs/rotating-file-sink.ts:17
Type Declaration
Section titled “Type Declaration”cutOffFileSize?
Section titled “cutOffFileSize?”
optionalcutOffFileSize?: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.
optionaleol?:string
Appended after every non-null formatted line. Default "\n".
formatter
Section titled “formatter”formatter:
Formatter<TData>
maxFileAgeMs?
Section titled “maxFileAgeMs?”
optionalmaxFileAgeMs?:number|null
The maximum age (in milliseconds) the file can reach before being rotated.
Default is null (disabled).
useCompression?
Section titled “useCompression?”
optionaluseCompression?:boolean
Whether to compress rotated files using gzip. Default false.
Type Parameters
Section titled “Type Parameters”TData