Custom attribute that, when applied on a method, causes PostSharp to implement tracing upon exception in this method.
Inheritance
LogExceptionAttribute
Implements
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class LogExceptionAttribute : LogAttributeBase, IMethodLevelAspect, IMethodLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ILogAspect, IAspectRemarks
<p>Using this custom attribute is strictly equivalent to using the <xref href="PostSharp.Patterns.Diagnostics.LogAttribute" data-throw-if-not-resolved="false"></xref> with the <code>Exceptions</code> profile
and no other property set.
Constructors
| Name | Description |
|---|---|
| LogExceptionAttribute() | Initializes a new LogExceptionAttribute. |