212 __attribute__((format(printf, 2, 3)));
267 const char *header_title,
291 const char *line_titles[],
292 const unsigned calls[],
int cs_log_printf_flush(cs_log_t log)
Flush output of a log file.
Definition: cs_log.cpp:523
void cs_log_default_activate(bool activate)
Update "active" or "inactive" flag of default log.
Definition: cs_log.cpp:229
bool cs_log_default_is_active(void)
Update "active" or "inactive" flag of default log.
Definition: cs_log.cpp:246
cs_log_t
Definition: cs_log.h:44
@ CS_LOG_DEFAULT
Definition: cs_log.h:46
@ CS_LOG_WARNINGS
Definition: cs_log.h:49
@ CS_LOG_PERFORMANCE
Definition: cs_log.h:48
@ CS_LOG_N_TYPES
Definition: cs_log.h:50
@ CS_LOG_SETUP
Definition: cs_log.h:47
int cs_log_printf(cs_log_t log, const char *format,...)
Print log info to a given log type.
Definition: cs_log.cpp:470
int cs_log_warning(const char *format,...)
Print log info to a given log type.
Definition: cs_log.cpp:697
void cs_log_strpadl(char *dest, const char *src, size_t width, size_t destsize)
Pad a string on the left so that its printable length is the required length.
Definition: cs_log.cpp:363
void cs_log_separator(cs_log_t log)
Print a separator line in a log file.
Definition: cs_log.cpp:559
size_t cs_log_strlen(const char *s)
Count printable length of a character string.
Definition: cs_log.cpp:264
void cs_log_strpad(char *dest, const char *src, size_t width, size_t destsize)
Pad a string so that its printable length is the required length.
Definition: cs_log.cpp:335
void cs_log_binary_pp_int32(int32_t code, char buf[33])
Pretty-print int-32 based bit field to string.
Definition: cs_log.cpp:381
int cs_log_vprintf(cs_log_t log, const char *format, va_list arg_ptr)
Print log info to a given log type.
Definition: cs_log.cpp:422
void cs_log_timer_array_header(cs_log_t log, int indent, const char *header_title, bool calls)
Output timing data array header to a given log.
Definition: cs_log.cpp:585
void cs_log_timer_array(cs_log_t log, int indent, int n_lines, const char *line_titles[], const unsigned calls[], const cs_timer_counter_t time_count[])
Output timing data block to a given log.
Definition: cs_log.cpp:641
Definition: cs_timer.h:51