ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
log_record Struct Reference

Owned fields extracted from one instrumentation log line. More...

Data Fields

uint64_t pid
 Process ID.
uint64_t tid
 Thread ID.
uint64_t seq
 Sequence number.
char * timestamp
 Timestamp string.
char * elapsed
 Elapsed time since start.
char * file
 Source file path.
uint32_t line
 Source line number.
char * function
 Function name.
uint32_t macro_flag
 Macro expansion flag.
char * snippet
 Code snippet.
char * raw_line
 Original raw log line.

Detailed Description

Owned fields extracted from one instrumentation log line.

The record keeps process/thread identity, ordering, elapsed time, source location, and message text in separate fields so panic reporting can filter and format entries without reparsing the original line. String fields are allocated by the parser and released with the record.

Definition at line 74 of file report.c.

Field Documentation

◆ elapsed

char* log_record::elapsed

Elapsed time since start.

Definition at line 79 of file report.c.

◆ file

char* log_record::file

Source file path.

Definition at line 80 of file report.c.

◆ function

char* log_record::function

Function name.

Definition at line 82 of file report.c.

◆ line

uint32_t log_record::line

Source line number.

Definition at line 81 of file report.c.

◆ macro_flag

uint32_t log_record::macro_flag

Macro expansion flag.

Definition at line 83 of file report.c.

◆ pid

uint64_t log_record::pid

Process ID.

Definition at line 75 of file report.c.

◆ raw_line

char* log_record::raw_line

Original raw log line.

Definition at line 85 of file report.c.

◆ seq

uint64_t log_record::seq

Sequence number.

Definition at line 77 of file report.c.

◆ snippet

char* log_record::snippet

Code snippet.

Definition at line 84 of file report.c.

◆ tid

uint64_t log_record::tid

Thread ID.

Definition at line 76 of file report.c.

◆ timestamp

char* log_record::timestamp

Timestamp string.

Definition at line 78 of file report.c.


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