Crates.io | tracing-loki-layer |
lib.rs | tracing-loki-layer |
version | 0.1.0 |
source | src |
created_at | 2022-07-14 02:13:57.199744 |
updated_at | 2022-07-14 02:13:57.199744 |
description | std::thread (not tokio) log sender to Loki. |
homepage | |
repository | https://github.com/cheetah-game-platform/tracing-loki-layer |
max_upload_size | |
id | 625400 |
size | 20,310 |
let loki_layer = LokiLayer::new(server.base_url(), Default::default());
let subscriber = tracing_subscriber::Registry::default().with(loki_layer);
let quard = tracing::subscriber::set_default(subscriber);