Crates.io | tracing-fmt-smart-writer |
lib.rs | tracing-fmt-smart-writer |
version | 0.3.0 |
source | src |
created_at | 2021-07-14 04:06:19.385566 |
updated_at | 2023-02-22 00:56:14.143467 |
description | Smart writer for tracing-subscriber's fmt module |
homepage | |
repository | https://github.com/DoumanAsh/tracing-fmt-smart-writer |
max_upload_size | |
id | 422556 |
size | 9,022 |
Smarter writer builder for tracing-subscriber's fmt module Version corresponds to major tracing-subscriber version.
use tracing_fmt_smart_writer::{WriterBuilder, tracing_subscriber};
tracing_subscriber::fmt::Subscriber::builder().with_writer(WriterBuilder::new())
.init();
Writes into logcat
ERROR
-> ERROR
;WARN
-> WARN
;INFO
-> INFO
;DEBUG
-> DEBUG
;TRACE
-> VERBOSE
;Writes using console
ERROR
-> console.error
;WARN
-> console.warn
;INFO
-> console.info
;DEBUG
-> console.debug
;TRACE
-> console.debug
;Writes into stdout