#syslog #logging #ffi

sys libsyslog-sys

FFI bindings to system's native syslog

2 unstable releases

0.1.0 Mar 2, 2023
0.0.0 Feb 24, 2023

#31 in #syslog

38 downloads per month
Used in libsyslog

MIT/Apache

7KB

libsyslog-sys

The code in this crate provides a low level API to the system's native syslog, the one typically implemented in C and residing in libc.

Most users are likely more interested in the higher level safe API in the libsyslog crate.

Contact

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

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.


lib.rs:

The code in this crate contains the raw bindings for syslog, automatically generated by bindgen. Before continuing any further, please make sure libsyslog is not the crate you really are looking for.

See The Open Group Base Specifications Issue 7, 2018 edition for actual API documentation or Wikipedia for general context.

Implementation specific documentation: (verified working platforms)

Apple Inc. is advising to no longer use syslog on macOS 10.12 and later, yet this crate compiles and messages produced by it do appear in the output of log stream on such platforms.

No runtime deps

~0–1.8MB
~36K SLoC