Skip to content
rlogger with Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.gitignore
.travis.yml
Cargo.toml
README.md

README.md

rust-rlogger

Rust client for rlogd's rloggerd.

Installation

Cargo.toml

[dependencies]
rlogger = { git = "https://github.com/hhatto/rust-rlogger.git", branch = "master" }

cargo-edit

You can also use cargo-edit to add this package to your Cargo.toml.

$ cargo add rlogger --git=https://github.com/hhatto/rust-rlogger.git

Usage

extern crate rlogger;
use rlogger::rlogger::RLogger;

fn main() {
    let socket_path = "/path/to/rloggerd.sock";
    let mut logger = RLogger::new(socket_path);
    let tag = "this.is.tag";
    let msg = "this is application log";
    logger.write(tag, msg);
}

X-rlogger family

License

MIT

You can’t perform that action at this time.