|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Source code location information for debugging. More...
#include <log_entry.h>

Public Member Functions | |
| source_location (const std::string &f="", int l=0, const std::string &func="") | |
| Construct source location from std::string. | |
| source_location (const char *f="", int l=0, const char *func="") | |
| Construct source location from C-strings. | |
Public Attributes | |
| small_string_256 | file |
| Source file path. | |
| int | line |
| Line number in the source file. | |
| small_string_128 | function |
| Function or method name. | |
Source code location information for debugging.
Captures the source file, line number, and function name where a log message originated. This information is invaluable for debugging and tracing issues in production.
The structure uses small string optimization (SSO) to avoid heap allocations for typical file paths and function names.
Definition at line 93 of file log_entry.h.
|
inline |
Construct source location from std::string.
| f | Source file path (default: empty) |
| l | Line number (default: 0) |
| func | Function name (default: empty) |
Definition at line 118 of file log_entry.h.
|
inline |
Construct source location from C-strings.
| f | Source file path (default: empty) |
| l | Line number (default: 0) |
| func | Function name (default: empty) |
Definition at line 130 of file log_entry.h.
| small_string_256 kcenon::logger::source_location::file |
Source file path.
Uses small_string_256 for efficient storage of file paths
Definition at line 98 of file log_entry.h.
| small_string_128 kcenon::logger::source_location::function |
Function or method name.
Uses small_string_128 for efficient storage of function names
Definition at line 110 of file log_entry.h.
| int kcenon::logger::source_location::line |
Line number in the source file.
Set to 0 if line information is not available
Definition at line 104 of file log_entry.h.