clogger · Section 3
clog_clear_fields
NAME
clog_clear_fields - remove all attached structured fields
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/clogger.h> void clog_clear_fields(clog logger);
DESCRIPTION
Removes and frees every field of the logger, so a later log line carries no key=value pair between func= and msg=.
PARAMETERS
logger Logger handle.
NOTES
Thread-safe, because the mutex of the logger protects the call. Asserts when logger is CLOG_NULL, stale or already closed.