LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
OtlpRecordSnapshot.hpp File Reference

Defines a stable snapshot of LogRecord data for asynchronous OTLP export. More...

#include <logit/utils.hpp>
#include <sstream>
#include <string>
#include <thread>
#include <vector>

Go to the source code of this file.

Classes

struct  logit::OtlpRecordSnapshot
 Owns LogRecord fields required after original logging call returns. More...
 

Namespaces

namespace  logit
 The primary namespace for the LogIt++ library.
 

Macros

#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPRECORDSNAPSHOT_HPP_INCLUDED
 

Functions

std::string logit::otlp_thread_id_to_string (const std::thread::id &id)
 Converts thread id to a portable string representation.
 
OtlpRecordSnapshot logit::make_otlp_record_snapshot (const LogRecord &record)
 Creates an owned snapshot from a LogRecord.
 

Detailed Description

Defines a stable snapshot of LogRecord data for asynchronous OTLP export.

Definition in file OtlpRecordSnapshot.hpp.

Macro Definition Documentation

◆ LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPRECORDSNAPSHOT_HPP_INCLUDED

#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPRECORDSNAPSHOT_HPP_INCLUDED

Definition at line 3 of file OtlpRecordSnapshot.hpp.