Why .full()
and .json()
are not present for tracing_subscriber::fmt()
when .pretty()
and .compact()
are?
#2264
Answered
by
davidbarsky
frederikhors
asked this question in
Q&A
-
I'm using this code instead of using tracing_subscriber::fmt()
// .full() // this method is not present
// .compact()
// .pretty()
// .json() // this method is not present
.init(); Why those methods are not present? |
Beta Was this translation helpful? Give feedback.
Answered by
davidbarsky
Aug 3, 2022
Replies: 1 comment 9 replies
-
While |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
hawkw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While
.full()
is already the default state of the builder returned bytracing_subscriber::fmt()
, we should probably have that method for consistency's sake..json()
is present: did you enable the JSON feature in yourCargo.toml
?