Documentation Index
Fetch the complete documentation index at: https://sysg.dev/llms.txt
Use this file to discover all available pages before exploring further.
logs
View stored output from managed services.Options
| Short | Long | Description |
|---|---|---|
-c | --config | Path to configuration file |
- | --purge | Reset log files instead of displaying them |
-s | --service | The name of the service whose logs should be displayed (optional) |
-l | --lines | Number of lines to show (default: 50) |
-k | --kind | Kind of logs to show: stdout, stderr, or supervisor. Omit this flag to show stdout+stderr together |
- | --stream | Continuously refresh the latest log snapshot at the provided interval (e.g., 5, 1s, 2m) |
- | --sys | Opt into privileged system mode. Requires running as root |
- | --log-level | Set verbosity (debug, info, warn, error) |
Examples
View recent logs from all services
View logs from specific service
Info: By default,sysg logsshows a stacked stdout+stderr stream in capture order. systemg adds its own UTC capture timestamp and stream label to service output as it is written, then reads the combined service log for the default view. Use--kind stdoutor--kind stderrwhen you need a single stream only.
Purge logs for a specific service
api’s current stdout and stderr log files in place and does not print logs.
Purge logs for all services
supervisor.log, in place and does not print logs.
View stderr logs
View supervisor logs
Show more history
Stream snapshots
--lines entries.
Log files
Logs are stored in~/.local/share/systemg/logs/:
{service}.log- Canonical stdout+stderr stream in capture order{service}_stdout.log/{service}_stderr.log- Legacy split-stream files from older systemg versions, still read as a fallback when no canonical log exists
Performance model
For the defaultfile logging sink, systemg captures each service’s stdout and stderr through pipes and writes both streams through one per-service writer into {service}.log. On Linux and macOS, the default sysg logs view tails that file directly with tail -F in follow mode. --kind stdout and --kind stderr filter recent captured lines by the stored stream label. The command itself is lightweight; the continuous cost comes from the capture threads, one writer thread, and one append-only file write path per service.
For high-output production workloads, configure logs.sink: none globally or per service to discard service output and avoid systemg log-writer threads, pipe backpressure from log capture, and file growth.
