ASP.NET Core
Skip cancelled request logs
Suppressing logs for cancelled HTTP requests with Scrutor
A Habr author describes how their ASP.NET Core team stopped logging OperationCanceledException when a client aborts an HTTP request. NLog filters and middleware catches fell short. The working approach decorates ILoggerProvider with Scrutor and checks HttpContext.RequestAborted before writing the entry.