Crates.io | tracing-fluentd |
lib.rs | tracing-fluentd |
version | 0.4.0 |
source | src |
created_at | 2021-07-15 14:30:54.860877 |
updated_at | 2023-04-27 12:54:01.808779 |
description | Enables forwarding of `tracing` events towards the `fluentd` server. |
homepage | |
repository | https://github.com/DoumanAsh/tracing-fluentd |
max_upload_size | |
id | 423108 |
size | 34,839 |
Enables forwarding of tracing
events towards the fluentd
server.
Version corresponds to tracing-subscriber
version.
use tracing_subscriber::layer::SubscriberExt;
let layer = tracing_fluentd::Builder::new("rust").flatten().layer().expect("Create layer");
let sub = tracing_subscriber::Registry::default().with(layer);
let guard = tracing::subscriber::set_default(sub);