#Logs structure
1 messages · Page 1 of 1 (latest)
Hi @eternal nacelle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I'm sorry, but the knowledge sources do not contain information about configuring or disabling log prettification or formatting for integration with Grafana, Loki, or Alloy. The documentation covers how to use the built-in logging system in Trigger.dev, including structured logs with the logger object and standard console logs, but it does not mention options for controlling log output formatting (such as single-line vs. multi-line logs) for external log aggregation tools like Grafana or Loki.
If you need more control over log formatting, you may need to handle this at the point where logs are exported or ingested into your logging stack, but this is not addressed in the provided Trigger.dev documentation.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@eternal nacelle Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Anyone?
We do "structured logging" which is a standard for logging in production. Grafana must support this surely?
Ah this is logs from one of the workers executing
Ok we must not be using our normal structured logger inside the execution stuff there. I don't think we've ever had anyone want to push those logs somewhere else before
Ok, now you know 🙂
Happy to help
Can I change that with some configuration?
No I don’t think so. I’m not sure why this is happening. It’s pretty common though so there might be a way to deal with it on the receiving side