You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @304NotModified. Is it possible to apply the [Target("Elmah")] attribute to all controllers? I was thinking of adding it via FilterConfig.cs as a global filter:
The given filter instance must implement one or more of the following filter interfaces: System.Web.Mvc.IAuthorizationFilter, System.Web.Mvc.IActionFilter, System.Web.Mvc.IResultFilter, System.Web.Mvc.IExceptionFilter, System.Web.Mvc.Filters.IAuthenticationFilter.
Other than to add the attribute to a base controller/class, is it possible to have it applied globally? This would send all NLog log information to Elmah as well for the entire app. Thanks
The text was updated successfully, but these errors were encountered:
Hi @304NotModified. Is it possible to apply the
[Target("Elmah")]
attribute to all controllers? I was thinking of adding it viaFilterConfig.cs
as a global filter:It errored out on the above with this message:
The given filter instance must implement one or more of the following filter interfaces: System.Web.Mvc.IAuthorizationFilter, System.Web.Mvc.IActionFilter, System.Web.Mvc.IResultFilter, System.Web.Mvc.IExceptionFilter, System.Web.Mvc.Filters.IAuthenticationFilter.
Other than to add the attribute to a base controller/class, is it possible to have it applied globally? This would send all NLog log information to Elmah as well for the entire app. Thanks
The text was updated successfully, but these errors were encountered: