C Collections

clogger · Section 3

clog_get_format

clog_get_format - return the current output format

C Collections (libccollections, -lccollections)

#include <ccollections/clogger.h>
 
clog_format clog_get_format(clog logger);

Returns the output format that the shared backing store uses at the
moment of the call.

logger  Logger handle.

CLOG_FMT_LOGFMT, CLOG_FMT_JSON, or CLOG_FMT_SYSLOG.

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

clog_set_format(3), clog_set_facility(3)