C Collections

clogger · Section 3

clog_debug

clog_debug - emit a log line at DEBUG level

C Collections (libccollections, -lccollections)

#include <ccollections/clogger.h>
 
clog_debug(clog lg, const char *fmt, ...);

Writes a log line at CLOG_DEBUG level and picks up __FILE__, __LINE__
and __func__ for you.  It appends no backtrace.

lg     Logger handle (clog).
fmt    printf-style format string.
...    Format arguments (optional).

clog_debug(lg, "cache miss for key=%d", key);

clog_trace(3), clog_info(3), clog_warn(3), clog_error(3), clog_alert(3), clog_fatal(3)