C Collections

clogger · Section 3

clog_clear_fields

clog_clear_fields - remove all attached structured fields

C Collections (libccollections, -lccollections)

#include <ccollections/clogger.h>
 
void clog_clear_fields(clog logger);

Removes and frees every field of the logger, so a later log line
carries no key=value pair between func= and msg=.

logger  Logger handle.

Thread-safe, because the mutex of the logger protects the call.
Asserts when logger is CLOG_NULL, stale or already closed.

clog_set_field(3), clog_remove_field(3)