Request
Cedar Quay Support receives lines shaped severity:message. Split at the first colon, trim severity, keep message text and skip malformed lines.
Result
Deliver a finite stream and a cancellable summary of error-level records. No live log source or external service is involved.
Cedar Quay Support needs a local processor for completed log batches. You will keep the source from one step while adding parsing, severity filters, counts and a cancellation boundary. The final result is deterministic even though the surrounding course covers concurrency. Do not start a goroutine when a simple local transformation is enough. Use channels only where the requested boundary calls for a stream, close the finite producer and collect every result before returning. The data is fictional. A malformed log record is skipped under this project's stated policy, while a canceled request returns an error and no partial summary. That policy must remain consistent across the functions you build.
Split only at the first colon.