slog-rs/slog

slog-json only outputs level in short form

Closed this issue · 2 comments

It seems that when using slog-json the log levels are printed in their short form.

If I check the code it seems like it's using as_short_str by default without a way to configure it.
Would be nice to add a config on the constructor to be able to chose which one to use or default to the long name.

https://github.com/slog-rs/json/blob/master/src/lib.rs#L340

dpc commented

I vaguely remember that this is entirely possible, by skipping default formatter and defining your own, BTW.

I vaguely remember that this is entirely possible, by skipping default formatter and defining your own, BTW.

Yeah you are right, didn't though of going that route