I find that such log is very hard to parse. Would be great if JSON-formatted can be parsed and displayed in an easier-to-scan manner by Glitch’s log viewer, e.g.
Hide trivial fields like time, pid, hostname by default
Hi, if you’re ok with doing this yourself, it looks like you can customise how the logger works by providing a custom pino logger to the logger property - you might be able to play around with the logging functions and see if you can get anywhere.
Alternatively, you could use the pino-pretty package, something like this:
However, as the doc said, “Enabling the logger with appropriate configuration for both local development and production environment requires bit more configuration.”
The starter code simply suggested just setting this to true, and in other observability platforms (e.g. Elastic, Datadog) JSON logs are parsed and displayed in a nice way out-of-the-box. So might be great if Glitch also has such support.