---
title: thv logs
hide_title: true
description: Reference for ToolHive CLI command `thv logs`
last_update:
  author: autogenerated
slug: thv_logs
mdx:
  format: md
---

## thv logs

Output the logs of an MCP server or manage log files

### Synopsis

Output the logs of an MCP server managed by ToolHive, or manage log files.

By default, this command shows the logs from the MCP server container.
Use --proxy to view the logs from the ToolHive proxy process instead.

Examples:
  # View logs of an MCP server
  thv logs filesystem

  # Follow logs in real-time
  thv logs filesystem --follow

  # View proxy logs instead of container logs
  thv logs filesystem --proxy

  # Clean up old log files
  thv logs prune

```
thv logs [workload-name|prune] [flags]
```

### Options

```
  -f, --follow   Follow log output (only for workload logs) (default false)
  -h, --help     help for logs
  -p, --proxy    Show proxy logs instead of container logs (default false)
```

### Options inherited from parent commands

```
      --debug   Enable debug mode
```

### SEE ALSO

* [thv](thv.md)	 - ToolHive (thv) is a lightweight, secure, and fast manager for MCP servers
* [thv logs prune](thv_logs_prune.md)	 - Delete log files from servers not currently managed by ToolHive

