Module context

Source
Expand description

Context management for rust-loguru

  • Thread-local storage for context data
  • Context stack management
  • Structured data for context values
  • Async propagation helpers

Enums§

ContextValue
Structured value for context

Functions§

current_context
Get the current merged context (top to bottom)
get_context_value
Get a value from the current context
has_context
Check if there is any context data available
pop_context
Pop the top context map from the stack
propagate_context_for_async
push_context
Push a new context map onto the stack
set_context_from_arc
set_context_value
Set a key-value pair in the current context

Type Aliases§

ContextMap
Type alias for context key-value pairs