tracing-glog
tracing-glog
is a glog-inspired formatter for tracing-subscriber
.
tracing-glog
should be used with tracing-subscriber
, as it is a formatter
that tracing-subscriber
's fmt::Subscriber
and fmt::Layer
can use to
format events in a glog-inspired fashion.
Examples
With fmt::Subscriber
:
use ;
fmt
.event_format
.fmt_fields
.init;
With tracing_subscriber::fmt::Layer
:
use *;
use ;
use ;
let fmt = default
.event_format
.fmt_fields;
let subscriber = default.with;
set_global_default.expect;