summaryrefslogtreecommitdiff
path: root/libsyslog
diff options
context:
space:
mode:
authorMartin Samuelsson <msamuelsson@storvix.eu>2023-02-24 07:31:44 +0100
committerMartin Samuelsson <msamuelsson@storvix.eu>2023-02-24 07:31:44 +0100
commit8ccef7cbe4c11c1638f82e1a9f4a36f5b643551a (patch)
tree007a394219325cf91f522915fbab2a2c1d33769c /libsyslog
downloadlibsyslog-rs-8ccef7cbe4c11c1638f82e1a9f4a36f5b643551a.zip
Initial commit
Diffstat (limited to 'libsyslog')
-rw-r--r--libsyslog/Cargo.toml9
l---------libsyslog/LICENSE-APACHE1
l---------libsyslog/LICENSE-MIT1
-rw-r--r--libsyslog/README.md35
-rw-r--r--libsyslog/src/lib.rs0
5 files changed, 46 insertions, 0 deletions
diff --git a/libsyslog/Cargo.toml b/libsyslog/Cargo.toml
new file mode 100644
index 0000000..2554477
--- /dev/null
+++ b/libsyslog/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "libsyslog"
+version = "0.0.0"
+edition = "2021"
+license = "MIT OR Apache-2.0"
+description = "Rust `log` facade using system's native syslog"
+repository = "https://git.netizen.se/libsyslog-rs"
+keywords = [ "logging", "syslog" ]
+categories = [ "external-ffi-bindings", "os" ]
diff --git a/libsyslog/LICENSE-APACHE b/libsyslog/LICENSE-APACHE
new file mode 120000
index 0000000..965b606
--- /dev/null
+++ b/libsyslog/LICENSE-APACHE
@@ -0,0 +1 @@
+../LICENSE-APACHE \ No newline at end of file
diff --git a/libsyslog/LICENSE-MIT b/libsyslog/LICENSE-MIT
new file mode 120000
index 0000000..76219eb
--- /dev/null
+++ b/libsyslog/LICENSE-MIT
@@ -0,0 +1 @@
+../LICENSE-MIT \ No newline at end of file
diff --git a/libsyslog/README.md b/libsyslog/README.md
new file mode 100644
index 0000000..5b4f64b
--- /dev/null
+++ b/libsyslog/README.md
@@ -0,0 +1,35 @@
+libsyslog
+=========
+The code (to be publiced shortly) 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 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.
+
+So far this code has only been attempted on illumos. 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 distributed under the
+terms of both the MIT license and the Apache License (Version 2.0).
+
+See LICENSE-APACHE and LICENSE-MIT for details.
+
+[Log]: https://docs.rs/log/latest/log/trait.Log.html
+[log]: https://lib.rs/crates/log
diff --git a/libsyslog/src/lib.rs b/libsyslog/src/lib.rs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/libsyslog/src/lib.rs