clogger · Section 3
clog_get_format
NAME
clog_get_format - return the current output format
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/clogger.h> clog_format clog_get_format(clog logger);
DESCRIPTION
Returns the output format that the shared backing store uses at the moment of the call.
PARAMETERS
logger Logger handle.
RETURN VALUE
CLOG_FMT_LOGFMT, CLOG_FMT_JSON, or CLOG_FMT_SYSLOG.
NOTES
Thread-safe, because the mutex of the shared backing store protects the call. Asserts when logger is CLOG_NULL, stale or already closed.