openclaw logs
View gateway logs.
Usage
bash
openclaw logs [options]Options
| Option | Description |
|---|---|
--follow, -f | Follow log output |
--lines, -n | Number of lines (default: 100) |
--level | Filter by level (debug, info, warn, error) |
--since | Show logs since timestamp |
--json | Output as JSON |
Examples
bash
# View recent logs
openclaw logs
# Follow logs in real-time
openclaw logs -f
# Show last 50 lines
openclaw logs -n 50
# Filter by level
openclaw logs --level error
# Logs since specific time
openclaw logs --since "2024-01-15 10:00"
# JSON output
openclaw logs --jsonLog Levels
| Level | Description |
|---|---|
debug | Detailed debugging info |
info | General information |
warn | Warnings |
error | Errors |
Log File Location
Logs are stored in:
- macOS/Linux:
~/.config/openclaw/logs/ - Windows (WSL):
~/.config/openclaw/logs/
See Also
- gateway - Gateway management
- Gateway Logging