> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-integr-1770157393-e6de789.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-integr-1770157393-e6de789/MvBEzztJgolfN3qb/langsmith/images/view-server-logs-button.png?fit=max&auto=format&n=MvBEzztJgolfN3qb&q=85&s=8906c7ff34d2b13f12a1765987617f2d" alt="View server logs button" 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-integr-1770157393-e6de789/0Lv9VdePl0TRnA4v/langsmith/images/lgp-server-logs-filters.png?fit=max&auto=format&n=0Lv9VdePl0TRnA4v&q=85&s=af17c99c9808b4f282c3e6323829163c" alt="Lgp server logs filters" width="1348" height="681" data-path="langsmith/images/lgp-server-logs-filters.png" />

***

<Callout icon="pen-to-square" iconType="regular">
  [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/platform-logs.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
</Callout>

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