PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​BackendsText­Logging­Backend­OptionsShould­Log­Exception­Predicate
Open sandboxFocus

TextLoggingBackendOptions.ShouldLogExceptionPredicate Property

ShouldLogExceptionPredicate

Gets or sets a predicate that determines whether an exception should be logged. This predicate is evaluated only when the method entry is not logged. When the method entry is logged, exceptions are always logged.

Declaration
public Func<Exception, bool> ShouldLogExceptionPredicate { get; set; }
Property Value
Type Description
System.Func<Exception, Boolean>