Emit raw JSON from service logs via journalctl -o cat
Strips journalctl's own prefix so each line is pino's raw JSON payload, pipeable into jq for pretty-printing without pulling pino-pretty into runtime dependencies.
This commit is contained in:
@@ -76,7 +76,9 @@ targets `/etc/systemd/system/` instead and prints the `sudo` commands to run if
|
||||
explicit `systemctl --user enable --now triggershell`, since it's the point where the service
|
||||
actually starts listening and running scripts. `triggershell service status`/`uninstall`/`logs` are
|
||||
thin wrappers around `systemctl`/`journalctl` respectively - no unit-file parsing or log storage of
|
||||
our own, journald already does that.
|
||||
our own, journald already does that. `logs` passes `-o cat` so each line is the raw pino JSON
|
||||
payload rather than journalctl's own timestamp/hostname/unit prefix - pipeable straight into `jq`
|
||||
for pretty-printing without pulling `pino-pretty` into the CLI's runtime dependencies.
|
||||
|
||||
## Cross-module-graph state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user