> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-toolre-1772123259-dfebfdb.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-toolre-1772123259-dfebfdb/e2Cdnjp5HOS-6hY1/langsmith/images/view-server-logs-button.png?fit=max&auto=format&n=e2Cdnjp5HOS-6hY1&q=85&s=bbb7970d4328f41a8f0dff378bbdeb2a" 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-toolre-1772123259-dfebfdb/JjaQOLa791e4RlYs/langsmith/images/lgp-server-logs-filters.png?fit=max&auto=format&n=JjaQOLa791e4RlYs&q=85&s=b606793f32db18c05769702c75a6255d" alt="Lgp server logs filters" width="1348" height="681" data-path="langsmith/images/lgp-server-logs-filters.png" />

***

<Callout icon="edit">
  [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>

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