Click or drag to resize

NestedDiagnosticsLogicalContext Class

Note: This API is now obsolete.

Obsolete and replaced by ScopeContext with NLog v5. Nested Diagnostics Logical Context (NDLC) is a stack of nested values. Stores the stack in the logical thread callcontexte, and provides methods to output the values in layouts.
Inheritance Hierarchy
SystemObject
  NLogNestedDiagnosticsLogicalContext

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
[ObsoleteAttribute("Replaced by ScopeContext.PushNestedState or Logger.PushScopeNested using ${scopenested}. Marked obsolete on NLog 5.0")]
public static class NestedDiagnosticsLogicalContext

The NestedDiagnosticsLogicalContext type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClear Obsolete.
Clears current stack.
Public methodStatic memberGetAllMessages Obsolete.
Gets all messages on the stack.
Public methodStatic memberGetAllMessages(IFormatProvider) Obsolete.
Gets all messages from the stack, without removing them.
Public methodStatic memberGetAllObjects Obsolete.
Gets all objects on the stack. The objects are not removed from the stack.
Public methodStatic memberPeekObject Obsolete.
Peeks the top object on the current NDLC stack
Public methodStatic memberPop Obsolete.
Pops the top message off the NDLC stack.
Public methodStatic memberPop(IFormatProvider) Obsolete.
Pops the top message from the NDLC stack.
Public methodStatic memberPopObject Obsolete.
Pops the top message off the current NDLC stack
Public methodStatic memberPushT Obsolete.
Pushes the specified value on current stack
Public methodStatic memberPushObject Obsolete.
Pushes the specified value on current stack
Top
See Also