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.
- NonBlocking
Builder - A builder for
NonBlocking. - Rolling
File Appender - 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.
- Worker
Guard - A guard that flushes spans/events associated to a
NonBlockingon a drop
Functions§
- non_
blocking - Convenience function for creating a non-blocking, off-thread writer.
- rolling_
dedicated_ thread - Build a
RollingFileAppenderwrapped inNonBlockingso file I/O (including rotation) runs on the appender’s worker thread instead of the caller’s. The returnedWorkerGuardmust be kept alive for the program’s lifetime; drop it just before exit to flush pending records. - rolling_
dedicated_ thread_ with_ builder rolling_dedicated_threadvariant accepting a pre-configuredNonBlockingBuilder(custom buffer limit, lossy vs. blocking back-pressure, thread name, …).