ExceptionLogger.ShouldLog Method

Determines whether the exception should be logged.

Namespace:  System.Web.Http.ExceptionHandling
Assembly:  System.Web.Http (in System.Web.Http.dll)

public virtual bool ShouldLog(
	ExceptionLoggerContext context
)

Parameters

context
Type: System.Web.Http.ExceptionHandling.ExceptionLoggerContext
The exception logger context.

Return Value

Type: System.Boolean
true if the exception should be logged; otherwise, false.
Show: