> ## Documentation Index
> Fetch the complete documentation index at: https://claw-tw.jackle.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# logs（日誌查看）

# `openclaw logs`

透過 RPC 追蹤 Gateway 的檔案日誌（支援遠端模式）。

相關資訊：

* 日誌配置總覽：[日誌配置 (Logging)](/zh-Hant/logging)

## 指令範例

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
# 顯示近期日誌內容
openclaw logs

# 持續追蹤（即時更新）
openclaw logs --follow

# 以 JSON 格式輸出日誌行
openclaw logs --json

# 限制顯示最近的 500 行內容
openclaw logs --limit 500
```
