Open sandboxFocus

Enum LogRecordKind

Specifies the kinds of log records.

Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common.dll
Syntax
[Flags]
public enum LogRecordKind

Fields

Name Description
AsyncMethodAwait

Before an async method suspends execution.

AsyncMethodResume

After an async method resumes execution.

CustomActivityEntry

Before a custom activity (emitted by OpenActivity(string) or OpenAsyncActivity(string)).

CustomActivityException

When a custom activity fails with an exception (emitted by SetException(Exception)).

CustomActivityExit

Any exit of a custom activity when it is not known whether the execution succeeded or failed.

CustomActivityFailure

When a custom activity fails with a custom message (emitted by SetFailure(string)).

CustomActivitySuccess

When a custom activity succeeds (emitted by SetSuccess(string)).

CustomRecord

A custom record (emitted by Write(LogLevel, string)).

ExecutionPoint

A record emitted by WriteExecutionPoint().

IteratorMoveNext

Before the MoveNext() method of an iterator executes.

IteratorYield

When an iterator yields a result.

MethodEntry

Before a method executes.

MethodException

After a failed method execution (the method threw an exception).

MethodOvertime

After a method executes successfully but takes longer than the threshold.

MethodSuccess

After a method executes successfully.

None

The value was not set.

ValueChanged

When the value of a field or property changes.

Extension Methods