skip to Main Content

How to disable Serilog to log one exception? – Asp.net

(Asp.Net core 3.1/.Net 6) I need to disable the ERR logging of exception TaskCanceledException in an Asp.Net application (built by others). I've used the following middleware to suppress the TaskCanceledException app.UseMiddleware<TaskCanceledMiddleware>(); public class TaskCanceledMiddleware { private readonly RequestDelegate _next; public…

VIEW QUESTION
Back To Top
Search