Class LogValueAttribute
Custom attribute that, when applied on a field or property, causes PostSharp to implement tracing when its value changes.
Implements
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
[MulticastAttributeUsage]
[Metric("UsedFeatures", "Patterns.Diagnostics.Logging")]
[ProvideAspectRole("Tracing")]
public class LogValueAttribute : LocationLevelAspect, ILocationLevelAspect, ILocationLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ILogValueAspect, IAspect
Constructors
Name | Description |
---|---|
LogValueAttribute() | Initializes a new LogValueAttribute for the default profile. |
LogValueAttribute(String) | Initializes a new LogValueAttribute and specifies a profile name. |
Properties
Name | Description |
---|---|
ProfileName | Gets or sets the name of the LoggingProfile. |