PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics/Log­Attribute
Open sandboxFocus

Class LogAttribute

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.