rust_fluent 0.3.0

fluentd client for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate rust_fluent;
use rust_fluent::tcp;

use std::collections::HashMap;


fn main() {
    let mut obj: HashMap<String, String> = HashMap::new();
    obj.insert("key".to_string(), "value".to_string());

    let fluentd = tcp::Fluentd::new("0.0.0.0:24224","foo");

    let _ = fluentd.write(&obj);
}