nself logs
nself logs
Section titled “nself logs”View and filter service logs with color and formatting.
Synopsis
Section titled “Synopsis”nself logs [SERVICE] [flags]Description
Section titled “Description”nself logs streams or displays logs from one or all ɳSelf services. Without a service name, it interleaves logs from all running services. Pass a service name to filter to a single service. Plugin service logs are read from ~/.nself/runtime/logs/{name}.log.
Output is colorized by level: errors in red, warnings in yellow, info in green. Duplicate timestamps are stripped. Use --follow for live streaming, press Ctrl+C to exit cleanly. Use --quiet to suppress healthcheck noise and focus on application-level events.
The --status, --summary, and --top flags provide aggregate views without raw log output, useful for quick operational checks.
| Flag | Default | Description |
|---|---|---|
--follow, -f | false | Follow log output (live streaming) |
--tail, -n | 10 | Number of lines to show |
--more | false | Show last 50 lines |
--all | false | Show last 100 lines |
--errors, -e | false | Show only error lines |
--level, -l | "" | Filter by level: error, warn |
--search, -s | "" | Search pattern (regex) |
--compact, -c | false | Compact output: [service] message |
--quiet, -q | false | Filter out healthcheck noise |
--status | false | Show service status overview |
--summary | false | Show recent errors by service |
--top | false | Show most active services |
--help, -h | none | Show help |
Examples
Section titled “Examples”# Last 10 lines from all servicesnself logs
# Follow all logs livenself logs -f
# Last 10 lines from hasuranself logs hasura
# Follow postgres logsnself logs -f postgres
# Show last 50 linesnself logs --more
# Show last 100 linesnself logs --all
# Only error linesnself logs -e
# Search for a pattern (regex)nself logs -s "migration"
# Live follow with error filternself logs -f -e
# Compact output for busy logsnself logs --compact
# Quick status overviewnself logs --status
# Recent errors by servicenself logs --summary
# Most active servicesnself logs --top