C Collections

clogger · Section 3

clog_info

clog_info - emit a log line at INFO level

C Collections (libccollections, -lccollections)

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

Writes a log line at CLOG_INFO level and picks up __FILE__, __LINE__
and __func__ for you.  It appends no backtrace.
 
For a production service, INFO is the minimum level we recommend as the
default.

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

clog_info(lg, "server started on port %d", port);
clog_info(lg, "request handled in %ldms", elapsed_ms);

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