ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
format.c File Reference

Log format parser implementation. More...

Go to the source code of this file.

Functions

log_template_t * log_template_parse (const char *format_str, bool console_only)
 Parse a format string into compiled format structure.
 
void log_template_free (log_template_t *format)
 Free compiled format structure.
 
int log_template_apply (const log_template_t *format, char *buf, size_t buf_size, log_level_t level, const char *timestamp, const char *file, int line, const char *func, uint64_t tid, const char *message, bool use_colors, uint64_t time_nanoseconds)
 Apply format to a log entry and write result to buffer.
 

Detailed Description

Log format parser implementation.

Definition in file log/format.c.