Rust types and implementations for systemd's logcontrol interface. https://crates.io/crates/logcontrol
Find a file
Image Sebastian Wiesner 9b8debba8c
Image
All checks were successful
/ test-all (push) Successful in 4m1s
Fix doc link
2025-11-20 19:56:45 +01:00
.forgejo/workflows Add CI workflow 2025-11-16 17:55:59 +01:00
log Migrate examples to async-io 2025-11-20 18:23:36 +01:00
log-reload Release log-reload 0.1.3 2025-05-05 21:53:35 +02:00
logcontrol Release logcontrol 1.0.3 2025-05-05 21:53:34 +02:00
tracing Migrate examples to async-io 2025-11-20 18:23:36 +01:00
zbus Fix doc link 2025-11-20 19:56:45 +01:00
.gitignore Initial commit 2023-09-28 08:28:32 +02:00
Cargo.lock Migrate examples to async-io 2025-11-20 18:23:36 +01:00
Cargo.toml Replace github workflows 2025-05-05 21:43:26 +02:00
deny.toml Remove unmatched ignored duplicates 2025-11-16 18:02:39 +01:00
justfile Explicitly specify toolchain 2025-11-16 17:56:36 +01:00
LICENSE-Apache-2.0 Initial commit 2023-09-28 08:28:32 +02:00
LICENSE-MIT Initial commit 2023-09-28 08:28:32 +02:00
README.md Migrate examples to async-io 2025-11-20 18:23:36 +01:00

logcontrol.rs

Crates.io docs.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:

  • logcontrol contains the basic types and defines an abstract trait for the interface.
  • logcontrol-tracing provides a logcontrol backend implementation for the tracing library.
  • logcontrol-log provides a logcontrol backend implementation for the log library.
  • logcontrol-zbus provides a DBus interface implementation for zbus DBus 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.