> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-devupd-1765394015-eccef47.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# View server logs for a trace

When viewing a trace that was generated by a run in LangSmith, you can access the associated server logs directly from the trace view.

<Note>
  Viewing server logs for a trace only works with the [Cloud SaaS](https://langchain-ai.github.io/langgra/langsmith/observability-concepts/deployment_options/#cloud-saas) and [fully self-hosted](https://langchain-ai.github.io/langgra/langsmith/observability-concepts/deployment_options/#self-hosted-control-plane) deployment options.
</Note>

## Access server logs from trace view

In the trace view, use the **See Logs** button in the top right corner, next to the **Run in Studio** button.

<img src="https://mintcdn.com/langchain-5e9cc07a-preview-devupd-1765394015-eccef47/nVC8DSpPsgct6jEM/langsmith/images/view-server-logs-button.png?fit=max&auto=format&n=nVC8DSpPsgct6jEM&q=85&s=7916b822c6dfa2cb167926519a3a4db7" alt="" width="1595" height="821" data-path="langsmith/images/view-server-logs-button.png" />

Clicking this button will take you to the server logs view for the associated deployment in LangSmith.

## Server logs view

The server logs view displays logs from both:

* **Agent Server's own operational logs** - Internal server operations, API calls, and system events
* **User application logs** - Logs written in your graph with:
  * Python: Use the `logging` or `structlog` libraries
  * JavaScript: Use the re-exported Winston logger from `@langchain/langgraph-sdk/logging`:

```javascript theme={null}
import { getLogger } from "@langchain/langgraph-sdk/logging";

const logger = getLogger();
logger.info("Your log message");
```

## Filtering logs by trace ID

When you navigate from the trace view, the **Filters** box will automatically pre-fill with the Trace ID from the trace you just viewed.

This allows you to quickly filter the logs to see only those related to your specific trace execution.

<img src="https://mintcdn.com/langchain-5e9cc07a-preview-devupd-1765394015-eccef47/_qwCqdAxeLRQD3t1/langsmith/images/lgp-server-logs-filters.png?fit=max&auto=format&n=_qwCqdAxeLRQD3t1&q=85&s=3bb31daadaf81c327d1aa7d623cc1c04" alt="" width="1348" height="681" data-path="langsmith/images/lgp-server-logs-filters.png" />

***

<Callout icon="pen-to-square" iconType="regular">
  [Edit the source of this page on GitHub.](https://github.com/langchain-ai/docs/edit/main/src/langsmith/platform-logs.mdx)
</Callout>

<Tip icon="terminal" iconType="regular">
  [Connect these docs programmatically](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
</Tip>
