pub enum PlatformSink {
Stdout,
File(File),
OsLog,
Journald(Option<UnixDatagram>),
UringFile(File),
}Expand description
Unified interface for platform-native log output.
Variants§
Stdout
Standard output fallback.
File(File)
File sink fallback.
OsLog
Native OS Log on macOS.
Journald(Option<UnixDatagram>)
Systemd Journald socket on Linux.
UringFile(File)
uring only.Linux io_uring-backed file sink. Enabled with the uring
feature. Only compiles on Linux — see
docs/adr/0011-io-uring-file-sink.md for the current
implementation status.
The variant currently stores the underlying File and
delegates writes to the standard synchronous path; the
io_uring submission-queue integration lands in Phase 20.1.
Consumers can already select this variant to future-proof
their sink pipeline, and the io-uring dependency is
resolved so the SQE wiring is drop-in.
Implementations§
Source§impl PlatformSink
impl PlatformSink
Sourcepub fn from_config(config: &Config) -> Self
pub fn from_config(config: &Config) -> Self
Build a sink from the given crate::config::Config.
Inspects logging_destinations in order:
File(path)→ open for appendStdout→ stdoutNetwork(_)→ skipped (not yet implemented)
Falls back to PlatformSink::native() if no destination matches.