Closed Christoph-AK closed 1 year ago
... as always: Trying to get it to run for hours, then write an issue, and find the solution 3 minutes later...
Using
{app="ankertau", env="live-de", level=~"warn|error"} | json | line_format `{{.message}}`
shows the correct, unescaped text. I'll try to find a more elegant way to display it, but for now it's working nicely.
Hey there, first of all thanks so much for this! Such a big help in day to day logging needs.
I'm currently writing a quite involved interface that exchanges data between an ecommerce platform and an ERP system and makes heavy use of logging.
One thing I noticed is that all log lines that get sent to loki are fully escaped. Is this a Grafana thing, or are they escaped within this crate? I would love to view the logs unescaped for easier handling.
My setup (roughly):
Example (a bit mangled to hammer down the point):
What gets displayed in grafana:
In the CLI the correct, unescaped output from the tracing_subscriber layer is shown.
For completeness: I made a small wrapper to include the backtrace in warnings. Shouldn't modiy any escaping tho.