LogRecordKind Enumeration |
Kinds of log entry.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.15.0 (6.5.15.0)
C#
[FlagsAttribute] public enum LogRecordKind
Member name | Value | Description | |
---|---|---|---|
None | 0 | The value was not set. | |
MethodEntry | 2 | Before method execution. | |
MethodSuccess | 4 | After successful method execution. | |
MethodException | 8 | After failed method execution (the method threw an exception). | |
AsyncMethodAwait | 16 | Before async method suspends execution. | |
AsyncMethodResume | 32 | After async method resumes execution. | |
ValueChanged | 64 | When value of a field or property changes. | |
CustomRecord | 128 | Custom record (emitted by Write(LogLevel, String). | |
CustomActivityEntry | 256 | Before a custom activity (emitted by OpenActivity(String) or OpenAsyncActivity(String)). | |
CustomActivityException | 512 | When a custom activity fails with an exception (emitted by SetException(Exception)). | |
CustomActivitySuccess | 1024 | When a custom activity succeeds (emitted by SetSuccess(String)). | |
CustomActivityFailure | 2048 | When a custom activity fails with a custom message (emitted by SetFailure(String). | |
IteratorYield | 4096 | When an iterator yields a result. | |
IteratorMoveNext | 8192 | Before the MoveNext() method of an iterator executes. | |
ExecutionPoint | 16384 | Emitted by WriteExecutionPoint(). | |
MethodOvertime | 32768 | After a method execution is successful but lasted more time than the threshold. | |
CustomActivityExit | 65536 | Any exit of a custom activity, where it is not known whether the execution succeeded or failed. |