ExceptionLogger.ShouldLog Method (ExceptionLoggerContext)
Determines whether the exception should be logged.
Namespace: System.Web.Http.ExceptionHandling
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public virtual bool ShouldLog(
ExceptionLoggerContext context
)
public:
virtual bool ShouldLog(
ExceptionLoggerContext^ context
)
abstract ShouldLog :
context:ExceptionLoggerContext -> bool
override ShouldLog :
context:ExceptionLoggerContext -> bool
Public Overridable Function ShouldLog (
context As ExceptionLoggerContext
) As Boolean
Parameters
context
Type: System.Web.Http.ExceptionHandling.ExceptionLoggerContextThe exception logger context.
Return Value
Type: System.Boolean
true if the exception should be logged; otherwise, false.
See Also
ExceptionLogger Class
System.Web.Http.ExceptionHandling Namespace
Return to top