PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLog­Attribute
Open sandboxFocus

LogAttribute Class

Custom attribute that, when applied on a method, causes PostSharp to implement tracing before and after execution of this method.

Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class LogAttribute : LogAttributeBase, IMethodLevelAspect, IMethodLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ILogAspect, IAspect

Constructors

Name Description
LogAttribute()

Initializes a new LogAttribute.

LogAttribute(String)

Initializes a new LogAttribute and specifies a logging profile.