wide-elephant-63050
09/28/2025, 10:13 PMtall-airline-16756
09/28/2025, 10:14 PMtall-airline-16756
09/28/2025, 10:14 PMwide-elephant-63050
09/28/2025, 10:15 PMtall-airline-16756
09/28/2025, 10:15 PMlivekit-cli logs --agent-id <your-agent-id>
• Access Build Logs: To see logs from the Docker build process, use:
livekit-cli build-logs --agent-id <your-agent-id>
• Handle LLM-Specific Errors: It’s a good idea to listen for error events in your backend code. For example:
@session.on("error")
def on_error(ev: ErrorEvent):
if isinstance(ev.error, LLMError):
print(f"LLM Error: {ev.error.error}, Recoverable: {ev.error.recoverable}")
• Forward Logs to External Services: For keeping your logs safe and accessible over time, consider forwarding them to platforms like Datadog, CloudWatch, or Sentry using LiveKit’s log forwarding feature.
Just a quick note: runtime logs aren’t stored by LiveKit Cloud, so integrating with an external service is the best way to keep your logs long-term. If you want to dive deeper, the Log Collection documentation has all the details you might need.
Sources: Log collection | LiveKit Docs | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realti...