Readable stack trace embedded into ASP.NET app
- JSON output
- XML output
- Nuget package
- Documentation
- quick-checking internal server error cause during full-stack development
- displaying internal server errors on client application
- storing exception data in some 3rd party storage/API
- pull requests are welcome!
- issues are welcome!
- feature requests are especially welcome!
- contact me via Telegram or Email
app.UseMiddleware(typeof(Catch),
System.Net.HttpStatusCode.InternalServerError,
new WithContentType("text/xml"),
new XmlDigest(
new BoBo.Formatting.XML.RecursiveDump(
new XmlDump()
)
)
);
<Exception>
<Message>wow</Message>
<Dump>
<Frame>
<File>C:\projects\BoBo\BoBo.ASPNETCore.TestEndpoints\Controllers\SampleController.cs</File>
<Method>Get</Method>
<LineNumber>14</LineNumber>
</Frame>
<Frame>
<File>C:\projects\BoBo\BoBo.ASPNETCore\Middleware\Catch.cs</File>
<Method>MoveNext</Method>
<LineNumber>31</LineNumber>
</Frame>
</Dump>
</Exception>
app.UseMiddleware(typeof(Catch),
System.Net.HttpStatusCode.InternalServerError,
new WithContentType("application/json"),
new JsonDigest(
new BoBo.Formatting.JSON.RecursiveDump(
new JsonDump()
)
)
);
{
"Footprint": [
{
"File": "C:\\projects\\BoBo\\BoBo.ASPNETCore.TestEndpoints\\Controllers\\SampleController.cs",
"Method": "Get",
"LineNumber": 14
},
{
"File": "C:\\projects\\BoBo\\BoBo.ASPNETCore\\Middleware\\Catch.cs",
"Method": "MoveNext",
"LineNumber": 31
}
],
"Message": "wow"
}
app.UseMiddleware(typeof(Catch),
System.Net.HttpStatusCode.InternalServerError,
new WithContentType("application/json"),
new JsonDigest(
new BoBo.Formatting.JSON.RecursiveDump(
new BoBo.Formatting.JSON.BasicDump()
)
)
);
{
"Footprint": "File: C:\\projects\\BoBo\\BoBo.ASPNETCore.TestEndpoints\\Controllers\\SampleController.cs
Method: Get
LineNumber: 14
---------->
File: C:\\projects\\BoBo\\BoBo.ASPNETCore\\Middleware\\Catch.cs
Method: MoveNext
LineNumber: 31",
"Message": "wow"
}