2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_LOGRECORD_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_LOGRECORD_HPP_INCLUDED
32#ifdef LOGIT_WITH_CONTEXT
33 const std::shared_ptr<const LogContextSnapshot> context;
51 const std::string&
file,
72#ifdef LOGIT_WITH_CONTEXT
73 , context(capture_log_context())
The primary namespace for the LogIt++ library.
Stores log metadata and content.
const std::string function
Function name.
const int logger_index
Logger index (-1 to log to all).
const int line
Line number in the source file.
std::thread::id thread_id
ID of the logging thread.
const LogLevel log_level
Log level (severity).
const bool raw_mode
Flag indicating if formatter and level filters should be bypassed.
const int64_t timestamp_ms
Timestamp in milliseconds.
const bool fmt_mode
Flag indicating if fmt formatting should be used.
const std::string file
Source file name.
const std::string format
Format string for the message.
std::vector< VariableValue > args_array
Argument values for the log.
LogRecord(LogLevel log_level, int64_t timestamp_ms, const std::string &file, int line, const std::string &function, const std::string &format, const std::string &arg_names, int logger_index, bool print_mode, bool fmt_mode=false, bool raw_mode=false)
Constructor with argument names.
const std::string arg_names
Argument names for the log.
const bool print_mode
Flag to determine whether arguments are printed in a raw format without special symbols.