Samples

Stream backend console output to any frontend

Console Log Streaming captures managed stdout and stderr, redacts sensitive data, keeps recent backfill, and streams live updates through ASP.NET Core and SignalR.

blazor — /diagnostics/console
Blazor sample showing live console log streaming
Samples

Three reference frontends

Blazor sample screenshot
ConsoleLogStreaming.Sample.Blazor

Blazor sample

A Blazor UI with recent backfill, live SignalR rows, stream/source filters, and demo stdout/stderr controls.

React sample screenshot
ConsoleLogStreaming.Sample.React

React sample

A lightweight React UI served by ASP.NET Core, using the SignalR JavaScript client with no npm build step.

Vanilla HTML + JS sample screenshot
ConsoleLogStreaming.Sample.Vanilla

Vanilla HTML + JS sample

A dependency-light vanilla UI with direct SignalR protocol usage, filters, metrics, and terminal-style log rows.

Shared capabilities

What every sample demonstrates

Recent console backfill

HTTP endpoint returns the most recent redacted lines so the UI starts populated.

Live SignalR streaming

Push stdout and stderr to connected clients as they happen, with backpressure-friendly channels.

Source, stream & text filters

Filter by source app, stdout vs. stderr, and substring — applied server-side and client-side.

Redaction before UI

Secrets are masked in the pipeline so tokens never reach the browser or persistence layer.

Optional SQLite retention

Plug in the SQLite sink for short-term durable history with MaxAge and MaxRows controls.

Framework-neutral backend

The core library works in any .NET host; ASP.NET Core only adds the HTTP + SignalR surface.

How it works

From Console.Out to your UI

  1. Step 01
    Console.Out / Console.Error
  2. Step 02
    Capture + redaction
  3. Step 03
    Provider / SQLite
  4. Step 04
    HTTP recent endpoint + SignalR hub
  5. Step 05
    Blazor / React / Vanilla UI
Run locally

Try a sample in under a minute

Clone the repo, then run any sample directly with the .NET SDK. Each project hosts its own ASP.NET Core endpoints and SignalR hub at /hubs/console-logs.

$dotnet run --project samples/ConsoleLogStreaming.Sample.Blazor
$dotnet run --project samples/ConsoleLogStreaming.Sample.React
$dotnet run --project samples/ConsoleLogStreaming.Sample.Vanilla