Logs As Event Streams
The app writes its event stream, unbuffered, to stdout. It does not concern itself with routing or storage. The execution environment captures the stream and routes it to log indexers, archives, or analytics.…
$ prime install @backend-architecture/rule-logs-as-event-streams Projection
Always in _index.xml · the agent never has to ask for this.
LogsAsEventStreams [rule] v1.0.0
The app writes its event stream, unbuffered, to stdout. It does not concern itself with routing or storage. The execution environment captures the stream and routes it to log indexers, archives, or analytics. Log files in the app are an anti-pattern because they are local, finite, and rotate-coupled to disk.
Loaded when retrieval picks the atom as adjacent / supporting.
LogsAsEventStreams [rule] v1.0.0
The app writes its event stream, unbuffered, to stdout. It does not concern itself with routing or storage. The execution environment captures the stream and routes it to log indexers, archives, or analytics. Log files in the app are an anti-pattern because they are local, finite, and rotate-coupled to disk.
Checks
- console.log / fmt.Println / logger output goes to stdout. No
log.txtin the repo. - Lines are unbuffered: a crash should not lose recent log lines.
- Structured (JSON) logs are encouraged so the platform indexer can parse fields.
- Log routing (to ELK, Datadog, Cloud Logging) is configured at the platform layer, not in app code.
Label
Treat logs as event streams written to stdout
Loaded when retrieval picks the atom as a focal / direct hit.
LogsAsEventStreams [rule] v1.0.0
The app writes its event stream, unbuffered, to stdout. It does not concern itself with routing or storage. The execution environment captures the stream and routes it to log indexers, archives, or analytics. Log files in the app are an anti-pattern because they are local, finite, and rotate-coupled to disk.
Checks
- console.log / fmt.Println / logger output goes to stdout. No
log.txtin the repo. - Lines are unbuffered: a crash should not lose recent log lines.
- Structured (JSON) logs are encouraged so the platform indexer can parse fields.
- Log routing (to ELK, Datadog, Cloud Logging) is configured at the platform layer, not in app code.
Label
Treat logs as event streams written to stdout
Label
Treat logs as event streams written to stdout
Source
prime-system/examples/backend-architecture/primes/compiled/@backend-architecture/rule-logs-as-event-streams/atom.yaml