OptionalappendAppend to existing file.
OptionalbufferOptionalenabledWhether transport is enabled.
File path for logs. Required.
OptionalflushOptionalforceOptionalformatOutput format for log entries.
OptionalfsyncForce synchronous writes with fsync. Warning: Enabling this significantly reduces performance.
OptionallevelMinimum log level to process.
OptionalmaxMaximum bytes to write in a single operation. Controls the chunk size for each write system call.
Should be larger than minLength to allow efficient batching. Typical values: 16KB-64KB depending on system I/O characteristics.
OptionalminMinimum buffer length before auto-flush (minLength in sonic-boom). Controls when the buffer is automatically flushed to disk.
Performance considerations:
OptionalmkdirCreate directory if it doesn't exist.
OptionalmodeFile mode for new files.
OptionalnameTransport name for identification.
OptionalretryRetry on EAGAIN errors.
Configuration options for async file transport.
These options control the behavior of the async file transport, including buffering, file handling, and performance tuning.
AsyncFileTransportOptions