Crates.io | flexi_logger_datadog |
lib.rs | flexi_logger_datadog |
version | 0.1.3 |
source | src |
created_at | 2022-02-04 00:21:42.048531 |
updated_at | 2022-04-26 23:28:54.138512 |
description | A `flexi_logger` compatible logger that sends to DataDog |
homepage | |
repository | https://github.com/sevco/flexi-logger-datadog |
max_upload_size | |
id | 526504 |
size | 81,615 |
#[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");
}