Function rolling_dedicated_thread
pub fn rolling_dedicated_thread(
rotation: Rotation,
directory: impl AsRef<Path>,
file_name_prefix: impl AsRef<Path>,
) -> (NonBlocking, WorkerGuard)Expand description
Build a RollingFileAppender wrapped in NonBlocking so
file I/O (including rotation) runs on the appender’s worker
thread instead of the caller’s. The returned WorkerGuard
must be kept alive for the program’s lifetime; drop it just
before exit to flush pending records.