Programmatic access to server logs?

Hello, I’m writing to ask if there is a programmatic way to access the server logs (View server logs for a trace - Docs by LangChain). Context: I’m writing a troubleshooting agent for our app and it is missing critical context that is not available in the traces themselves. Thanks!