Expand description
Provides sinks to flexibly output log messages to specified targets.
§Sink
Sinks are the objects that actually write logs to their targets. Each sink
should be responsible for only single target (e.g file, console, database),
and each sink has its own private instance of Formatter
object.
A sink has its own level filter that is not shared with the logger, and a
Logger
can combine multiple Sink
s.
§Combined sink
A combined sink is also a sink, but instead of having its own target and formatter, it combines other sinks (as sub-sinks).
Operations on a combined sink will be forwarded to its sub-sinks according to the implementation.
Structs§
- Async
Pool Sink multi-thread
- A combined sink, logging and flushing asynchronously (thread-pool-based).
- Async
Pool Sink Builder multi-thread
- Dedup
Sink - A combined sink, skip consecutive repeated records.
- Dedup
Sink Builder - File
Sink - A sink with a file as the target.
- File
Sink Builder - Journald
Sink Linux and native
andlibsystemd
- A sink with systemd-journal as the target.
- Journald
Sink Builder Linux and native
andlibsystemd
- Rotating
File Sink - A sink with a file as the target, split files according to the rotation policy.
- Rotating
File Sink Builder - StdStream
Sink - A sink with a std stream as the target.
- StdStream
Sink Builder - WinDebug
Sink Windows and native
- A sink with a win32 API
OutputDebugStringW
as the target. - WinDebug
Sink Builder Windows and native
- Write
Sink - A sink that writes log messages into an arbitrary
impl Write
object. - Write
Sink Builder
Enums§
- Overflow
Policy multi-thread
- Overflow policy for asynchronous sinks.
- Rotation
Policy - Rotation policies for
RotatingFileSink
. - StdStream
- An enum representing the available standard streams.
Traits§
- Sink
- Represents a sink