2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPRECORDSNAPSHOT_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPRECORDSNAPSHOT_HPP_INCLUDED
38 std::ostringstream oss;
The primary namespace for the LogIt++ library.
@ LOG_LVL_TRACE
Trace level logging.
std::string otlp_thread_id_to_string(const std::thread::id &id)
Converts thread id to a portable string representation.
OtlpRecordSnapshot make_otlp_record_snapshot(const LogRecord &record)
Creates an owned snapshot from a LogRecord.
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.
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.
Owns LogRecord fields required after original logging call returns.
std::string format
Original message or format string.
LogLevel log_level
Log severity level.
int64_t timestamp_ms
Timestamp in milliseconds.
int line
Source line number.
std::string thread_id
Stringified std::thread::id.
std::vector< VariableValue > args_array
Structured argument values.
std::string file
Source file path.
int logger_index
Target logger index, or -1 for all.
std::string arg_names
Original argument names.
std::string function
Source function name.
bool fmt_mode
fmt formatting mode flag.
bool raw_mode
Raw log mode flag.
bool print_mode
Raw argument print mode flag.
Aggregates the public utilities module.