Julien-R44/pino-loki

Configurable message and labels

akurdyukov opened this issue · 5 comments

Using pino-loki in projects like NestJS leads to not-so-friendly messages in Grafana. Please see example
loki-unfriendly

Currently there's not way to configure pino-loki to make message look like this:
loki-friendly

Sorry, my method does not work in a real app because pino is executed in a Worker. Need to find another solution.

Working solution implemented, please check

That fix looks great, would be interested in seeing this merged to master