{"slug": "asp-net-core-request-exception-logging-with-a-built-in-dashboard", "title": "ASP.NET Core Request & Exception Logging with a Built-In Dashboard", "summary": "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.", "body_md": "Most ASP.NET Core logging setups tell you that something failed — but not what actually happened during the request lifecycle.\nI built AsGuard to provide lightweight request + exception logging with a built-in dashboard and minimal setup.\nGitHub Repository:\nhttps://github.com/mahmood-alsarraj/asguard\ndotnet add package AsGuard\nbuilder.Services.AddRequestLogging(options =>\n{\noptions.DatabaseProvider = LoggingDatabaseProvider.Sqlite;\noptions.ConnectionString = \"Data Source=AsGuard.db\";\noptions.DashboardRoute = \"/request-logs-ui\";\noptions.DashboardUsername = \"admin\";\noptions.DashboardPassword = \"admin123\";\noptions.EnableExceptionLogging = true;\noptions.LogRequestBody = true;\noptions.LogResponseBody = true;\n});\nvar app = builder.Build();\napp.UseExceptionHandler(\"/error\");\n// After the exception handler\napp.UseRequestLogging();\nNavigate to \"/request-logs-ui\", enter your credentials, and watch your application’s heartbeat in real-time.\nModern applications need visibility.\nSometimes you don’t need a massive observability platform — you just need a fast and practical way to inspect requests and exceptions.\nThat’s the problem AsGuard aims to solve for ASP.NET Core developers.\n⭐ Star the repo if AsGuard helps you!", "url": "https://wpnews.pro/news/asp-net-core-request-exception-logging-with-a-built-in-dashboard", "canonical_source": "https://dev.to/mahmood-alsarraj/aspnet-core-request-exception-logging-with-a-built-in-dashboard-3pbc", "published_at": "2026-05-22 18:39:32+00:00", "updated_at": "2026-05-22 19:03:31.000284+00:00", "lang": "en", "topics": ["open-source", "developer-tools", "enterprise-software"], "entities": ["AsGuard", "ASP.NET Core", "SQLite", "Mahmood Alsarraj"], "alternates": {"html": "https://wpnews.pro/news/asp-net-core-request-exception-logging-with-a-built-in-dashboard", "markdown": "https://wpnews.pro/news/asp-net-core-request-exception-logging-with-a-built-in-dashboard.md", "text": "https://wpnews.pro/news/asp-net-core-request-exception-logging-with-a-built-in-dashboard.txt", "jsonld": "https://wpnews.pro/news/asp-net-core-request-exception-logging-with-a-built-in-dashboard.jsonld"}}