PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Record­Kind Enumeration

LogRecordKind Enumeration

Kinds of log entry.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: (
public enum LogRecordKind
  Member nameValueDescription
None0 The value was not set.
MethodEntry2 Before method execution.
MethodSuccess4 After successful method execution.
MethodException8 After failed method execution (the method threw an exception).
AsyncMethodAwait16 Before async method suspends execution.
AsyncMethodResume32 After async method resumes execution.
ValueChanged64 When value of a field or property changes.
CustomRecord128 Custom record (emitted by Write(LogLevel, String).
CustomActivityEntry256 Before a custom activity (emitted by OpenActivity(String) or OpenAsyncActivity(String)).
CustomActivityException512 When a custom activity fails with an exception (emitted by SetException(Exception)).
CustomActivitySuccess1024 When a custom activity succeeds (emitted by SetSuccess(String)).
CustomActivityFailure2048 When a custom activity fails with a custom message (emitted by SetFailure(String).
IteratorYield4096 When an iterator yields a result.
IteratorMoveNext8192 Before the MoveNext() method of an iterator executes.
ExecutionPoint16384 Emitted by WriteExecutionPoint().
MethodOvertime32768 After a method execution is successful but lasted more time than the threshold.
CustomActivityExit65536 Any exit of a custom activity, where it is not known whether the execution succeeded or failed.
See Also