C Collections

clogger · Section 3

clog_get_level

clog_get_level - return the current minimum log level

C Collections (libccollections, -lccollections)

#include <ccollections/clogger.h>
 
clog_level clog_get_level(clog logger);

Returns the minimum severity level that the logger has at the moment of
the call.

logger  Logger handle.

The current minimum level.

Thread-safe.  Each logger keeps its minimum level in an atomic value of
its own, apart from the lock that serialises the writes and the rotation
of the shared output target, so reading the level of one logger never
contends with a write that a sibling logger on the same target has in
progress.
Asserts when logger is CLOG_NULL, stale or already closed.

clog_set_level(3)