fern icon indicating copy to clipboard operation
fern copied to clipboard

Off the shelf formatters

Open piegamesde opened this issue 4 years ago • 2 comments

When using out logging crates, having the possibility to set a custom log format is nice, but being required to do so every time is rather tedious. The current default for fern simply only prints the log message, which I wouldn't call a great default.

A possible solution for this could be to provide a few off the shelf working formatters in different flavors. These could be either constants or function (for parametrization). I think there should at least a simple formatter, one with time, and one with additional color (of course, feature gated).

piegamesde avatar Jul 08 '21 00:07 piegamesde

Definitely agree with this!

See also #13, which is a similar concept that I never got around to really implementing.

daboross avatar Jul 08 '21 23:07 daboross

I've added a prototype in #84

piegamesde avatar Jul 11 '21 00:07 piegamesde