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

Log context containing source location information. More...

#include <log_context.h>

Collaboration diagram for kcenon::logger::core::log_context:
Collaboration graph

Public Attributes

std::string_view file {"unknown"}
 
int line {0}
 
std::string_view function {"unknown"}
 
std::thread::id thread_id {std::this_thread::get_id()}
 
std::chrono::time_point< std::chrono::system_clock > timestamp
 

Detailed Description

Log context containing source location information.

Definition at line 91 of file core.cppm.

Member Data Documentation

◆ file

std::string_view kcenon::logger::core::log_context::file {"unknown"}
export

◆ function

std::string_view kcenon::logger::core::log_context::function {"unknown"}
export

◆ line

int kcenon::logger::core::log_context::line {0}
export

◆ thread_id

std::thread::id kcenon::logger::core::log_context::thread_id {std::this_thread::get_id()}
export

Definition at line 21 of file log_context.h.

21{std::this_thread::get_id()};

◆ timestamp

std::chrono::time_point< std::chrono::system_clock > kcenon::logger::core::log_context::timestamp
export
Initial value:
{
std::chrono::system_clock::now()}

Definition at line 22 of file log_context.h.

22 {
23 std::chrono::system_clock::now()};

The documentation for this struct was generated from the following files: