flexi_logger_datadog

Crates.ioflexi_logger_datadog
lib.rsflexi_logger_datadog
version0.1.3
sourcesrc
created_at2022-02-04 00:21:42.048531
updated_at2022-04-26 23:28:54.138512
descriptionA `flexi_logger` compatible logger that sends to DataDog
homepage
repositoryhttps://github.com/sevco/flexi-logger-datadog
max_upload_size
id526504
size81,615
Aaron Griffin (aig787)

documentation

https://docs.rs/flexi-logger-datadog

README

flexi-logger-datadog

Crates.io docs.rs GitHub Workflow Status

Logger for https://github.com/emabee/flexi_logger that writes to DataDog.

Usage

Using tokio

#[tokio::main]
async fn main() {
    let dd_config = DataDogConfigBuilder::new(
        "logging-service-hostname".to_string(),
        "logging-service".to_string(),
        "DUMMY_API_KEY".to_string(),
    )
    .build();
    
    init_tokio_logger(dd_config, None).await.unwrap();
    
    trace!("Trace message");
    debug!("Debug message");
    info!("Info message");
    error!("Error message");
}
Commit count: 19

cargo fmt