Sitemap
Sipke Schoorstra

Sipke Schoorstra

Founder at Valence Works | open-source maintainer | Microsoft MVP

Console Log Streaming

2 min readJun 14, 2026

--

A NuGet Package for capturing backend stdout+err

Press enter or click to view image in full size

While working on Elsa Studio, I needed a simple way to stream console output from running workflows to the browser in real time.

Not persisted logs. Not a full observability stack. Just live console output.

The idea behind ConsoleLogStreaming is straightforward:

  • capture console output,
  • expose it through a REST API,
  • allow client applications to subscribe to the stream.

Why?

Elsa workflows can execute long-running processes involving:

  • background jobs,
  • HTTP calls,
  • AI agents,
  • distributed execution,
  • resumable workflows,
  • and external systems.

When such workflows run from Elsa Studio, it’s useful to see what’s happening while the workflow executes.

For example:

Dispatching workflow...
Calling external API...
Waiting for signal...
Workflow resumed...
Completed.

That sort of feedback makes debugging much easier and gives users visibility into what the runtime is doing.

Basic setup

The library is intentionally lightweight.

Register the services:

builder.Services.AddConsoleLogStreaming();

Enable the middleware:

app.UseConsoleLogStreaming();

And that’s basically it.

Console output written using:

Console.WriteLine("Hello world");

becomes available to connected clients.

Get Sipke Schoorstra’s stories in your inbox

Join Medium for free to get updates from this writer.

Pretty neat.

Streaming logs to a client

A client application can subscribe to the stream and receive console output in real time.

Press enter or click to view image in full size

Something along these lines:

const eventSource = new EventSource("/console-logs");
eventSource.onmessage = e => {
console.log(e.data);
};

This makes it easy to integrate live runtime output into:

  • dashboards,
  • workflow designers,
  • admin portals,
  • orchestration UIs,
  • or debugging tools.

Using it from Elsa Studio

One of the places where this is currently used is Elsa Studio.

When workflows execute, runtime output can be streamed directly to the UI, making it much easier to understand what’s happening during execution.

Especially with:

  • long-running workflows,
  • background activities,
  • AI agents,
  • and distributed task execution.

Being able to surface runtime activity live from the server turns out to be surprisingly useful.

Final thoughts

This project is intentionally small in scope.

It’s not trying to replace structured logging systems or observability platforms.

It simply provides a lightweight mechanism for exposing console output to remote clients in real time.

Sometimes that’s all you need.

Product website:

https://www.consolelogstreaming.dev/

Project repository:

https://github.com/valence-works/console-log-streaming

--

--

Written by Sipke Schoorstra

Founder at Valence Works | open-source maintainer | Microsoft MVP