OptionalautoWhether to automatically flush and close the logger when the process exits.
When enabled, hooks are installed on process.on('beforeExit') and process.on('exit').
OptionalbatchMaximum number of logs to batch together before sending to the worker. Higher values = better throughput but higher latency.
OptionalbatchMaximum time in milliseconds to wait before flushing a partial batch. Prevents logs from being delayed indefinitely when batch size is not reached. Set to 0 to disable time-based flushing.
OptionalflushWhether to flush pending logs before the process exits.
Only applies when autoEnd is true.
OptionalmaxMaximum number of messages that can be sent to the worker without acknowledgment. Controls backpressure to prevent overwhelming the worker thread.
OptionalmaxMaximum number of log messages that can be queued in memory before dropping new logs.
Configuration options for the Logger instance.