NLog.ScopeContext
ScopeContext stores state in the async thread execution context. All LogEvents created
within a scope can include the scope state in the target output. The logical context scope supports
both scope-properties and scope-nested-state-stack (Similar to log4j2 ThreadContext)
Clears all the entire logical context scope, and removes any properties and nested-states
Retrieves all nested states inside the logical context scope stack
Retrieves all properties stored within the logical context scopes
Peeks the top value from the logical context scope stack
Pushes new state on the logical context scope stack
Pushes new state on the logical context scope stack
public static IDisposable PushNestedStateProperties(object nestedState, IReadOnlyCollection<KeyValuePair<string, object>> properties)
Pushes new state on the logical context scope stack together with provided properties
public static IDisposable PushProperties(IReadOnlyCollection<KeyValuePair<string, object>> properties)
Updates the logical scope context with provided properties
public static IDisposable PushProperties<TValue>(IReadOnlyCollection<KeyValuePair<string, TValue>> properties)
Updates the logical scope context with provided properties
Updates the logical scope context with provided property
Updates the logical scope context with provided property
Lookup single property stored within the logical context scopes