Rust types and implementations for systemd's logcontrol interface.
https://crates.io/crates/logcontrol
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| log | ||
| log-reload | ||
| logcontrol | ||
| tracing | ||
| zbus | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| deny.toml | ||
| justfile | ||
| LICENSE-Apache-2.0 | ||
| LICENSE-MIT | ||
| README.md | ||
logcontrol.rs
Types and implementations for systemd's logcontrol interface.
This interface provides means to change logging behaviour of system services at runtime, over D-Bus, or via systemctl service-log-level or systemctl service-log-target.
This repository provides a collection of traits of basic types and implementations of this interface:
logcontrolcontains the basic types and defines an abstract trait for the interface.logcontrol-tracingprovides a logcontrol backend implementation for thetracinglibrary.logcontrol-logprovides a logcontrol backend implementation for theloglibrary.logcontrol-zbusprovides a DBus interface implementation forzbusDBus framework.
Usage
$ cargo add logcontrol-tracing
$ cargo add logcontrol-zbus
See tracing/examples/zbus_tracing.rs for a complete example with zbus and tracing,
and log/examples/zbus_log.rs for an example using the log crate.