PostSharp5.0//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
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 [!:Logger.SetException(System.Exception)]).
CustomActivitySuccess1024 When a custom activity succeeds (emitted by [!:Logger.SetSuccess(string)]).
CustomActivityFailure2048 When a custom activity fails with a custom message (emitted by [!:Logger.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.
See Also