pinojs / pino-pretty

🌲Basic prettifier for Pino log lines
MIT License
1.22k stars 147 forks source link

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

Open binarykitchen opened 1 month ago

binarykitchen commented 1 month ago

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 commented 1 month ago

Possible duplicate of https://github.com/pinojs/pino-pretty/issues/430

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

https://github.com/pinojs/pino-pretty/blob/7830286b10c6549789fbe5a2afaa74a517870f60/Readme.md?plain=1#L9-L12