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

Print the message in the same colour as the level #524

Open
binarykitchen opened this issue Aug 1, 2024 · 1 comment
Open

Print the message in the same colour as the level #524

binarykitchen opened this issue Aug 1, 2024 · 1 comment

Comments

@binarykitchen
Copy link

Great library, I just ditched Bunyan & Winston for it, sorry.

As a very visually oriented person (Deaf), I would like to have the message in the same colour as the level has its colour.

I mean, if it's an ERROR, all should be printed in red. Not just its level, everything. Winston's pretty log does this.

For example, the screenshot in your README:
image

I think this should be somewhat configurable and default. Because if an error happens on production, all should be in red, not just the five letters E.R.R.O.R :)

@jsumners
Copy link
Member

jsumners commented Aug 1, 2024

Possible duplicate of #430

Because if an error happens on production, all should be in red, not just the five letters E.R.R.O.R :)

pino-pretty/Readme.md

Lines 9 to 12 in 7830286

This module provides a basic [ndjson](http://ndjson.org/) formatter to be used in __development__. If an
incoming line looks like it could be a log line from an ndjson logger, in
particular the [Pino](https://getpino.io/) logging library, then it will apply
extra formatting by considering things like the log level and timestamp.

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