pinojs / pino-pretty

🌲Basic prettifier for Pino log lines
MIT License
1.27k stars 150 forks source link

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

Open binarykitchen opened 3 months ago

binarykitchen commented 3 months 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 3 months 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