PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLog­Record­Kind
Open sandboxFocus

LogRecordKind Class

Kinds of log entry.

Inheritance
LogRecordKind
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common.dll
Syntax
public sealed class LogRecordKind : Enum

Fields

Name Description
AsyncMethodAwait

Before async method suspends execution.

AsyncMethodResume

After 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, where 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

Custom record (emitted by Write(LogLevel, String).

ExecutionPoint

Emitted by WriteExecutionPoint().

IteratorMoveNext

Before the MoveNext() method of an iterator executes.

IteratorYield

When an iterator yields a result.

MethodEntry

Before method execution.

MethodException

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

MethodOvertime

After a method execution is successful but lasted more time than the threshold.

MethodSuccess

After successful method execution.

None

The value was not set.

value__
ValueChanged

When value of a field or property changes.

Extension Methods

LogRecordKindExtensions.IsOpen(LogRecordKind)
LogRecordKindExtensions.IsClose(LogRecordKind)
LogRecordKindExtensions.IsCloseCustomActivity(LogRecordKind)
LogRecordKindExtensions.IsStandalone(LogRecordKind)
LogRecordKindExtensions.IsCustom(LogRecordKind)