Open oatymart opened 4 hours ago
@oatymart I think you have a bigger problem. "info"
should work, but looking at your screenshot, I see [1]
in the beginning of the line. In this case, Dozzle can't parse the JSON, which is why it is not working for you.
Can you remove that? As of now, Dozzle is treating your log as plain text which is why [info]
works.
Describe the feature you would like to see
I have a node app with pino logging to stdout in a container. Dozzle picks up the log stream but can't detect levels based on pino's default numeric output:
I used a formatter from pino's docs to replace the number with a string. Dozzle still in the dark about levels:
Lastly I edited the formatter to wrap the level as
[level]
. Now, Dozzle can detect levels:My question is, can anything be done on this side to make Dozzle more pino-aware? (I don't know how it parses the level from the logs, but it doesn't seem like
"level": "debug"
is that much harder to detect than"level": "[debug]"
.)