Hi guys, does anyone know how to track logs for a ...
# agents
s
Hi guys, does anyone know how to track logs for a specific agent worker via room name? the logs through lk agent tail show mixed logs for all workers of an agent and sometimes activity just randomly stops appearing in logs. @refined-appointment-81829 any guidance is appreciated. Thanks a bunch
r
Have you tried:
Copy code
ctx.log_context_fields = {
        "room": ctx.room.name,
    }
https://github.com/livekit/agents/blob/main/examples/voice_agents/basic_agent.py#L79