Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
kcenon::logger::core Namespace Reference

Classes

class  filtered_logger
 
struct  log_context
 Log context containing source location information. More...
 
class  logger_context
 Facade coordinating logger system components. More...
 
class  logger_registry
 Manages registration and unregistration of loggers. More...
 
class  signal_manager_context
 Manages signal manager instance with thread-safe access. More...
 

Functions

log_context kcenon::logger::core::make_log_context (std::string_view file, int line, std::string_view function)
 Create a log context with source location.
 

Function Documentation

◆ make_log_context()

log_context kcenon::logger::core::make_log_context ( std::string_view file,
int line,
std::string_view function )
inlineexport

Create a log context with source location.

Definition at line 26 of file log_context.h.

28 {
29 log_context ctx;
30 ctx.file = file;
31 ctx.line = line;
32 ctx.function = function;
33 ctx.thread_id = std::this_thread::get_id();
34 ctx.timestamp = std::chrono::system_clock::now();
35 return ctx;
36}
Log context containing source location information.
Definition core.cppm:91
std::chrono::time_point< std::chrono::system_clock > timestamp
Definition log_context.h:22