Optional
bufferNumber of log entries to buffer before writing. Higher values improve throughput but increase memory usage and risk of data loss.
WARNING: Buffered logs can be lost if the process crashes!
Optional
enabledWhether the transport is enabled.
Path to the log file. Directories will be created automatically if they don't exist.
Optional
flushInterval in milliseconds between automatic flushes. Set to 0 to disable time-based flushing.
Optional
forceForce fsync after each write for maximum durability. This guarantees logs are on disk but reduces performance to ~1000 ops/sec. Only use for critical audit logs.
Optional
formatOutput format for log entries.
Optional
formatterCustom formatter for log entries.
Optional
highSize of the kernel write buffer in bytes. Larger buffers reduce system calls and improve performance.
Optional
levelMinimum log level to write.
Optional
maxMaximum number of rotated files to keep.
Optional
maxMaximum file size in bytes before rotation. Set to 0 to disable rotation.
Optional
nameTransport identifier.
Optional
timestampWhether to append timestamp to filename.
Configuration options for the synchronous file transport.
SyncFileTransportOptions
Since
1.0.0