Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
log_context_scope.h File Reference

RAII-based context scope management for structured logging kcenon. More...

#include <kcenon/logger/interfaces/log_entry.h>
#include <kcenon/logger/logger_export.h>
#include <algorithm>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for log_context_scope.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::logger::log_context_storage
 Thread-local storage for structured logging context fields. More...
 
class  kcenon::logger::log_context_scope
 RAII guard for structured logging context. More...
 
class  kcenon::logger::scoped_context
 Convenience class for setting a single context field with RAII. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Detailed Description

RAII-based context scope management for structured logging kcenon.

Since
3.2.0

This file provides thread-local context storage and RAII scope guards for structured logging context fields. Context fields set within a scope are automatically included in all structured log entries and are automatically cleaned up when the scope exits.

Definition in file log_context_scope.h.