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
systemg writes internal operational logs and can optionally capture service stdout/stderr.What’s logged
- Service lifecycle (start, stop, restart, crash)
- Cron job execution
- Configuration changes
- Supervisor events
Location
~/.local/share/systemg/logs/supervisor.log (user mode)
/var/log/systemg/supervisor.log (system mode)
Service output uses the same directory:
{service}.log
{service}.log. sysg logs reads that stored file; it does not attach to the
original process streams.
Info: The default service log is stacked in capture order. Each line gets a systemg UTC capture timestamp plus a stream label, such asstdoutorstderr, sosysg logs --kind stderrcan filter recent lines without needing a second stderr file.
Service output configuration
Use the top-levellogs block to set defaults for all services:
logs block to override the global defaults:
file- Capture stdout/stderr and write systemg-managed log files.none- Discard stdout/stderr without creating log-writer threads or files.
max_bytes controls active file rotation for the file sink. max_files controls how many numbered rotated files are retained. Set sink: none for high-output services when another logging pipeline is already responsible for collection.
View logs
Log levels
Set verbosity when starting:trace (5), debug (4), info (3), warn (2), error (1), off (0)
Log format
[TIMESTAMP] [LEVEL] [MODULE]: [MESSAGE]
Common messages
Service events
Cron events
Supervisor events
Supervisor log rotation
Using logrotate
Create/etc/logrotate.d/systemg:
Manual rotation
Troubleshooting
Log file missing- Check systemg has started
- Verify directory exists
- Try
--log-level debug - Check services are running
- Configure service log rotation with
logs.max_bytesandlogs.max_files - Use logrotate for
supervisor.log - Reduce log level
