Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Off the shelf formatters #82

Open
piegamesde opened this issue Jul 8, 2021 · 2 comments
Open

Off the shelf formatters #82

piegamesde opened this issue Jul 8, 2021 · 2 comments

Comments

@piegamesde
Copy link

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).

@daboross
Copy link
Owner

daboross commented Jul 8, 2021

Definitely agree with this!

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

@piegamesde
Copy link
Author

I've added a prototype in #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants