clogger · Section 3
clog_remove_field
NAME
clog_remove_field - remove a previously attached structured field
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/clogger.h> void clog_remove_field(clog logger, const char *key);
DESCRIPTION
Removes the field with the given key from the field list of the logger, so the field appears in no later log line. When the field list holds no such key the call does nothing.
PARAMETERS
logger Logger handle. key Field name to remove. The match is exact and case-sensitive.
NOTES
Thread-safe, because the mutex of the logger protects the call. Asserts when logger is CLOG_NULL, stale or already closed.