PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends Namespace/Text­Logging­Backend­Options Class/Text­Logging­Backend­Options Properties/Text­Logging­Backend­Options.​Should­Log­Exception­Predicate Property

TextLoggingBackendOptions.ShouldLogExceptionPredicate Property

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.

Namespace:  PostSharp.Patterns.Diagnostics.Backends
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public Func<Exception, bool> ShouldLogExceptionPredicate { get; set; }

Property Value

Type: Func<Exception, Boolean>
See Also