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

RAII guard for automatic context restoration. More...

#include "unified_log_context.h"
#include <kcenon/logger/logger_export.h>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for scoped_context_guard.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::logger::scoped_context_guard
 RAII guard for automatic context management. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Detailed Description

RAII guard for automatic context restoration.

Author
kcenon
Since
3.3.0

This file provides the scoped_context_guard class that enables RAII-based context management with automatic restoration on scope exit. It works with the unified_log_context API to provide exception-safe context handling.

Definition in file scoped_context_guard.h.