clogger · Section 3
clog_warn
NAME
clog_warn - emit a log line at WARN level
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/clogger.h> clog_warn(clog lg, const char *fmt, ...);
DESCRIPTION
Writes a log line at CLOG_WARN level and picks up __FILE__, __LINE__ and __func__ for you. It appends no backtrace. WARN is meant for a condition that the program recovers from, something that doesn't stop normal operation but that someone should look at.
PARAMETERS
lg Logger handle (clog). fmt printf-style format string. ... Format arguments (optional).
EXAMPLES
clog_warn(lg, "retry %d/%d connecting to %s", attempt, max, host); clog_warn(lg, "config key %s missing, using default", key);