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

```rust

[tokio::main]

async fn main() { let ddconfig = DataDogConfigBuilder::new( "logging-service-hostname".tostring(), "logging-service".tostring(), "DUMMYAPIKEY".tostring(), ) .build();

init_tokio_logger(dd_config, None).await.unwrap();

trace!("Trace message");
debug!("Debug message");
info!("Info message");
error!("Error message");

} ```