Replay Mode (CI)
Replay mode writes logs to NDJSON so runs can be inspected later.
How it works
- SDK detects CI (
CI,GITHUB_ACTIONS, etc.) or you forceciMode: true. - Logs are appended to
./slogx_logs/<service>.ndjson(default path). - Upload/publish the NDJSON artifact.
- Load file or URL in https://binhonglee.github.io/slogx/replay.
Example config
slogx.init({
isDev: true,
serviceName: 'api',
ciMode: true,
logFilePath: './slogx_logs/api.ndjson',
maxEntries: 10000,
});
Replay viewer inputs
- drag-and-drop local
.ndjson - paste a direct URL to NDJSON
- use the built-in Try Demo CI Logs button