pinojs / pino-pretty

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

error.cause is not logged #518

Open AlessioGr opened 2 months ago

AlessioGr commented 2 months ago

I am adding a cause to my error, but the error cause is not showing.

I did not find any pino-pretty option which allows me to customize it to include the error.cause. messageFormat only contains the raw error msg as an argument, and a custom prettifier for err and error is not run at all.

jsumners commented 2 months ago

Please provide a minimal reproducible example. Doing so will help us diagnose your issue. It should be the bare minimum code needed to trigger the issue, and easily runnable without any changes or extra code.

You may use a GitHub repository to host the code if it is too much to fit in a code block (or two).