libsyslog

Crates.iolibsyslog
lib.rslibsyslog
version0.1.1
sourcesrc
created_at2023-02-24 17:54:38.162653
updated_at2023-05-28 21:24:43.369279
descriptionRust `log` facade using system's native syslog
homepage
repositoryhttps://git.netizen.se/libsyslog-rs/
max_upload_size
id793810
size33,352
(nospam3089)

documentation

README

libsyslog

The code in this crate provides an API implementing the standard Rust logging facade using the system's syslog. That is, it implements the Log trait of the log crate for native syslog, typically implemented in C and residing in libc.

Why?

How does this differ from the handful of other pre-existing syslog crates? This one uses the system library implementation rather than attempting to rewrite it in Rust. The hope is thus to have a crate that works on pretty much any platform with syslog, avoiding bugs from making assumptions on implementation specific details.

The need arose from a desire to use syslog on illumos, a platform where most of the other syslog crates fail to even build and other(s) instead fail at runtime.

A list of attempted platforms is maintained in libsyslog-sys. Reports on success or failures to use it on other platforms are most welcome.

Contact

Please see https://www.netizen.se/#contact.

Copyright and License

This crate is Copyright 2023 Martin Samuelsson. It is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt