1 unstable release

0.1.0 May 15, 2022

#245 in Debugging

Download history 1/week @ 2022-06-09 5/week @ 2022-06-16 47/week @ 2022-06-30 93/week @ 2022-07-07 152/week @ 2022-07-14 149/week @ 2022-07-21 147/week @ 2022-07-28 138/week @ 2022-08-04 173/week @ 2022-08-11 151/week @ 2022-08-18 118/week @ 2022-08-25 344/week @ 2022-09-01 324/week @ 2022-09-08 139/week @ 2022-09-15 95/week @ 2022-09-22

938 downloads per month

MIT license

29KB
712 lines

Logstash appender for log4rs

This crate provides appender implementation for log4rs.

Get started

use std::time::Duration;

fn main() {
    log4rs::init_file(
        "path_to_config.yaml",
        log4rs_logstash::config::deserializers(),
    ).unwrap();
    spawn_signal_handler().unwrap();

    log::debug!("Debug");
    log::trace!("Trace");
    log::info!("Info");
    log::warn!("Warn");
    log::error!("Error");
}

examples/basic.rs provides example of program with exit handling.

examples/basic_config.yaml example of config file with logstash appender.

Dependencies

~2–9.5MB
~179K SLoC