Skip to main content

Module appender

Module appender 

Expand description

Re-export of [tracing_appender] plus rama utilities that go with it.

Modules§

non_blocking
A non-blocking, off-thread writer.
rolling
A rolling file appender.

Structs§

NonBlocking
A non-blocking writer.
NonBlockingBuilder
A builder for NonBlocking.
RollingFileAppender
A file appender with the ability to rotate log files at a fixed schedule.
Rotation
Defines a fixed period for rolling of a log file.
WorkerGuard
A guard that flushes spans/events associated to a NonBlocking on a drop

Functions§

non_blocking
Convenience function for creating a non-blocking, off-thread writer.
rolling_dedicated_thread
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.
rolling_dedicated_thread_with_builder
rolling_dedicated_thread variant accepting a pre-configured NonBlockingBuilder (custom buffer limit, lossy vs. blocking back-pressure, thread name, …).