cd /news/open-source/asp-net-core-request-exception-loggi… · home topics open-source article
[ARTICLE · art-9774] src=dev.to ↗ pub= topic=open-source verified=true sentiment=↑ positive

ASP.NET Core Request & Exception Logging with a Built-In Dashboard

The article introduces AsGuard, a lightweight logging solution for ASP.NET Core that provides request and exception logging with a built-in dashboard, requiring minimal setup. It offers features such as SQLite database support, configurable dashboard credentials, and the ability to log both request and response bodies. The tool aims to give developers practical visibility into their application's request lifecycle without needing a full observability platform.

read1 min views18 publishedMay 22, 2026

Most ASP.NET Core logging setups tell you that something failed — but not what actually happened during the request lifecycle. I built AsGuard to provide lightweight request + exception logging with a built-in dashboard and minimal setup. GitHub Repository: https://github.com/mahmood-alsarraj/asguard dotnet add package AsGuard

builder.Services.AddRequestLogging(options =>
{

options.DatabaseProvider = LoggingDatabaseProvider.Sqlite;

options.ConnectionString = "Data Source=AsGuard.db";
options.DashboardRoute = "/request-logs-ui";
options.DashboardUsername = "admin";
options.DashboardPassword = "admin123";
options.EnableExceptionLogging = true;
options.LogRequestBody = true;
options.LogResponseBody = true;
});
var app = builder.Build();
app.UseExceptionHandler("/error");
// After the exception handler
app.UseRequestLogging();

Navigate to "/request-logs-ui", enter your credentials, and watch your application’s heartbeat in real-time. Modern applications need visibility. Sometimes you don’t need a massive observability platform — you just need a fast and practical way to inspect requests and exceptions. That’s the problem AsGuard aims to solve for ASP.NET Core developers. ⭐ Star the repo if AsGuard helps you!

── more in #open-source 4 stories · sorted by recency
── more on @asguard 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/asp-net-core-request…] indexed:0 read:1min 2026-05-22 ·