using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Http.Filters; namespace CPE.App.Api { public class NotImplExceptionFilterAttribute : ExceptionFilterAttribute { public override void OnException(HttpActionExecutedContext context) { System.IO.File.WriteAllText(@"D:\Log_files\CpeApi_OnExceptionBruteLogger.log", context.Exception.ToString()); } } }