TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::Diagnostics::LogRecord Struct Reference

One message as sinks and CopyRecentLogRecords see it. More...

#include <gui_core/diagnostics/gui_logging.h>

Public Attributes

uint64_t sequence = 0
 1-based, increases by one per record
int64_t timestampNanos = 0
 steady clock, see SteadyClockNowNanos
uint64_t threadId = 0
 Hash of the emitting thread's std::thread::id.
LogCategory category
 Where it comes from.
LogSeverity severity = LogSeverity::Info
 How serious it is.
std::string_view messageTemplate
 Static, with a {} per argument.
const char * file = ""
 Source file of the call (FILE).
uint32_t line = 0
 Source line of the call.
uint8_t argCount = 0
 How many of args are used.
LogArg args [kMaxLogArgs]
 The arguments; read text ones with LogArgText.
char text [kLogTextCapacity]
 The text arguments' bytes.

Detailed Description

One message as sinks and CopyRecentLogRecords see it.

Fixed size; its strings are static or inside the record.

Member Data Documentation

◆ sequence

uint64_t tachyon::Diagnostics::LogRecord::sequence = 0

1-based, increases by one per record

◆ timestampNanos

int64_t tachyon::Diagnostics::LogRecord::timestampNanos = 0

steady clock, see SteadyClockNowNanos

◆ threadId

uint64_t tachyon::Diagnostics::LogRecord::threadId = 0

Hash of the emitting thread's std::thread::id.

◆ category

LogCategory tachyon::Diagnostics::LogRecord::category

Where it comes from.

◆ severity

LogSeverity tachyon::Diagnostics::LogRecord::severity = LogSeverity::Info

How serious it is.

◆ messageTemplate

std::string_view tachyon::Diagnostics::LogRecord::messageTemplate

Static, with a {} per argument.

◆ file

const char* tachyon::Diagnostics::LogRecord::file = ""

Source file of the call (FILE).

◆ line

uint32_t tachyon::Diagnostics::LogRecord::line = 0

Source line of the call.

◆ argCount

uint8_t tachyon::Diagnostics::LogRecord::argCount = 0

How many of args are used.

◆ args

LogArg tachyon::Diagnostics::LogRecord::args[kMaxLogArgs]

The arguments; read text ones with LogArgText.

◆ text

char tachyon::Diagnostics::LogRecord::text[kLogTextCapacity]

The text arguments' bytes.


The documentation for this struct was generated from the following file: