ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
log_format_spec_t Struct Reference

One literal or conversion token in a compiled log format. More...

#include <include/ascii-chat/log/format.h>

Data Fields

log_template_type_t type
char * literal
size_t literal_len

Detailed Description

One literal or conversion token in a compiled log format.

type tells the formatter which runtime value to insert. Literal and time tokens use the heap-owned literal text and its byte length; the containing compiled format releases those strings with the specifier array.

Definition at line 59 of file log/format.h.

Field Documentation

◆ literal

char* log_format_spec_t::literal

Definition at line 61 of file log/format.h.

Referenced by log_template_apply(), and log_template_free().

◆ literal_len

size_t log_format_spec_t::literal_len

Definition at line 62 of file log/format.h.

Referenced by log_template_apply().

◆ type

log_template_type_t log_format_spec_t::type

Definition at line 60 of file log/format.h.

Referenced by log_template_apply().


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