Most elegant way to map nodejs' console.error / console.warn to error and warning on Grafana dashboard?

I just noticed that console.error and console.warn don’t map to error / log on Grafana’s dashboard.

What’s the recommended ( most minimal / elegant ) way of wiring this up?

Thank you in advance for your help.

:thinking: I’m not sure it’s possible to do this, unfortunately. all app logs are shown as “info” level.

Do you know who would be sure about this?

I have been recommended to use Winston, for instance on this post @ community.grafana.com

I’m guessing this is a fairly common use case so someone on the fly.io community or fly.io team must have experience with?

I searched this forum and didn’t find a solution yet tough!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.