rebterlai/examples/example-logtail-facade/src/main.rs

15 lines
319 B
Rust

use log::{debug, error, info, warn};
#[tokio::main]
async fn main() {
let mut eg = logtail_facade::init("rebterlai.example-logtail-facade".to_string()).unwrap();
error!("error");
warn!("warn");
info!("info");
debug!("debug");
// TODO(Xe): automate this somehow
eg.post().await.unwrap()
}