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!