How to print the record level with it's corresponding style version 0.11 #354
Answered
by
epage
Zerowalker
asked this question in
Q&A
-
Not sure how to phrase the title, basically I got something like this: env_logger::builder()
.format(|buf, record| {
writeln!(
buf,
"{}",
buf.default_level_style(record.level())
.value(record.level()),
)
})
.init(); And the |
Beta Was this translation helpful? Give feedback.
Answered by
epage
Mar 18, 2025
Replies: 1 comment 1 reply
-
I suspect this example would help. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Zerowalker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suspect this example would help.