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( "logger-example".tostring(), "logger-example".tostring(), "DUMMYAPIKEY".tostring(), ) .build(); inittokiologger(dd_config, None).await.unwrap(); trace!("Trace message"); debug!("Debug message"); info!("Info message"); error!("Error message"); } ```