https://github.com/swsnr/logcontrol.rs
Readonly mirror of codeberg.org/swsnr/logcontrol.rs
https://github.com/swsnr/logcontrol.rs
mirrored-repository
Last synced: about 1 month ago
JSON representation
Readonly mirror of codeberg.org/swsnr/logcontrol.rs
- Host: GitHub
- URL: https://github.com/swsnr/logcontrol.rs
- Owner: swsnr
- License: apache-2.0
- Created: 2025-09-20T07:21:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-11-20T18:57:13.000Z (4 months ago)
- Last Synced: 2026-02-12T09:49:20.926Z (about 2 months ago)
- Topics: mirrored-repository
- Language: Rust
- Homepage: https://codeberg.org/swsnr/logcontrol.rs
- Size: 220 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-Apache-2.0
Awesome Lists containing this project
README
# logcontrol.rs
[](https://crates.io/crates/logcontrol)
[](https://docs.rs/logcontrol)
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`](https://codeberg.org/swsnr/logcontrol.rs/src/branch/main/tracing) provides a logcontrol backend implementation for the [`tracing`][tracing] library.
- [`logcontrol-log`](https://codeberg.org/swsnr/logcontrol.rs/src/branch/main/log) provides a logcontrol backend implementation for the [`log`][log] library.
- [`logcontrol-zbus`](https://codeberg.org/swsnr/logcontrol.rs/src/branch/main/zbus) provides a DBus interface implementation for [`zbus`][zbus] DBus framework.
[logcontrol]: https://www.freedesktop.org/software/systemd/man/org.freedesktop.LogControl1.html#
[tracing]: https://github.com/tokio-rs/tracing
[log]: https://github.com/rust-lang/log
[zbus]: https://github.com/dbus2/zbus
## Usage
```console
$ cargo add logcontrol-tracing
$ cargo add logcontrol-zbus
```
See [`tracing/examples/zbus_tracing.rs`](./tracing/examples/zbus_tracing.rs) for a complete example with [zbus] and [tracing],
and [`log/examples/zbus_log.rs`](./log/examples/zbus_log.rs) for an example using the [log] crate.