clogger · Section 3
clog_get_level
NAME
clog_get_level - return the current minimum log level
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/clogger.h> clog_level clog_get_level(clog logger);
DESCRIPTION
Returns the minimum severity level that the logger has at the moment of the call.
PARAMETERS
logger Logger handle.
RETURN VALUE
The current minimum level.
NOTES
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.