C Collections

clogger · Section 3

clog_get_facility

clog_get_facility - return the current syslog facility

C Collections (libccollections, -lccollections)

#include <ccollections/clogger.h>
 
clog_syslog_facility clog_get_facility(clog logger);

Returns the syslog facility that the shared backing store holds at the
moment of the call.

logger  Logger handle.

The current facility code.

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_facility(3), clog_set_format(3)