We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9fc8f7 commit fececfaCopy full SHA for fececfa
crates/pet/src/lib.rs
@@ -47,15 +47,16 @@ pub fn initialize_tracing(verbose: bool) {
47
if use_json {
48
tracing_subscriber::registry()
49
.with(filter)
50
- .with(fmt::layer().json())
+ .with(fmt::layer().json().with_writer(std::io::stderr))
51
.init();
52
} else {
53
54
55
.with(
56
fmt::layer()
57
.with_target(true)
58
- .with_timer(fmt::time::uptime()),
+ .with_timer(fmt::time::uptime())
59
+ .with_writer(std::io::stderr),
60
)
61
62
}
0 commit comments