1 unstable release

0.1.0 May 15, 2022

#603 in Debugging

Download history 86/week @ 2024-03-14 130/week @ 2024-03-21 72/week @ 2024-03-28 47/week @ 2024-04-04 103/week @ 2024-04-11 68/week @ 2024-04-18 20/week @ 2024-04-25 47/week @ 2024-05-02 44/week @ 2024-05-09 81/week @ 2024-05-16 104/week @ 2024-05-23 125/week @ 2024-05-30 32/week @ 2024-06-06 35/week @ 2024-06-13 122/week @ 2024-06-20 53/week @ 2024-06-27

265 downloads per month

MIT license

30KB
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–14MB
~201K SLoC