struct LogMessage

Defined at line 125 of file ../../src/lib/diagnostics/log/message/rust/cpp-log-decoder/log_decoder.h

Log message representation for FFI with C++.

# Lifetime and Borrowing

Strings within `LogMessage` (`tags`, `message`, and string keys/values in `kvps`)

borrow directly from the incoming encoded message buffer (`bytes`) when possible,

or from the provided arena allocator (`Bump`).

Consequently, the incoming message buffer MUST remain valid and unmodified

for at least as long as the `LogMessage` is in use.

Public Members

uint8_t severity
CppArray tags
uint64_t pid
uint64_t tid
uint64_t dropped
CppArray message
CppArray file
uint64_t line
CppArray moniker_tag
CppArray kvps
int64_t timestamp

Public Methods

void LogMessage (const char * file, int line)

Defined at line 18 of file ../../src/connectivity/network/tools/sockscripter/log.h

void ~LogMessage ()

Defined at line 20 of file ../../src/connectivity/network/tools/sockscripter/log.h

std::ostream & stream ()

Defined at line 26 of file ../../src/connectivity/network/tools/sockscripter/log.h