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§
- Android
Sink Android and native
andandroid-ndk
- A sink with Android NDK API
__android_log_write
as the target. - Android
Sink Builder Android and native
andandroid-ndk
- Async
Pool Sink - A combined sink, logging and flushing asynchronously (thread-pool-based).
- Async
Pool Sink Builder - 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 - Sink
Prop - Contains definitions of sink properties.
- 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§
- Android
LogTag Android and native
andandroid-ndk
- Represents how to choose a tag for Android logs.
- Overflow
Policy multi-thread
- Overflow policy for asynchronous sinks.
- Rotation
Policy - Rotation policies for
RotatingFileSink
. - StdStream
- An enum representing the available standard streams.
Traits§
- GetSink
Prop - Represents the getter for the
SinkProp
inside a sink. - Sink
- Represents a sink
- Sink
Prop Access - Represents getters for properties of a sink.