ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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 67 of file log/format.h.

Field Documentation

◆ literal

char* log_format_spec_t::literal

Definition at line 69 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 71 of file log/format.h.

Referenced by log_template_apply().

◆ type

log_template_type_t log_format_spec_t::type

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

Referenced by log_template_apply().


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