OptionalbufferNumber 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!
OptionalenabledWhether the transport is enabled.
Path to the log file. Directories will be created automatically if they don't exist.
OptionalflushInterval in milliseconds between automatic flushes. Set to 0 to disable time-based flushing.
OptionalforceForce 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.
OptionalformatOutput format for log entries.
OptionalformatterCustom formatter for log entries.
OptionalhighSize of the kernel write buffer in bytes. Larger buffers reduce system calls and improve performance.
OptionallevelMinimum log level to write.
OptionalmaxMaximum number of rotated files to keep.
OptionalmaxMaximum file size in bytes before rotation. Set to 0 to disable rotation.
OptionalnameTransport identifier.
OptionaltimestampWhether to append timestamp to filename.
Configuration options for the synchronous file transport.
SyncFileTransportOptions
Since
1.0.0