Reference
crab logs
View and manage diagnostic logs.
Synopsis
crab logs [OPTIONS]Description
crab logs displays Crab's diagnostic logs, useful for troubleshooting
failures. Logs include timestamps, severity levels, and structured fields.
For conceptual background, see Log Management.
Options
| Option | Default | Description |
|---|---|---|
--tail | 50 | Number of recent lines to show |
--level | info | Minimum log level (trace, debug, info, warn, error) |
--follow | false | Stream new log entries |
--clean | false | Remove old log files |
Examples
View recent logs
crab logsView error-level logs only
crab logs --level errorClean old logs
crab logs --cleanRelated Commands
crab doctor— health checks.crab errors— error code lookup.