clogger · Section 3
clog_info
NAME
clog_info - emit a log line at INFO level
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/clogger.h> clog_info(clog lg, const char *fmt, ...);
DESCRIPTION
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.
PARAMETERS
lg Logger handle (clog). fmt printf-style format string. ... Format arguments (optional).
EXAMPLES
clog_info(lg, "server started on port %d", port); clog_info(lg, "request handled in %ldms", elapsed_ms);
SEE ALSO
clog_trace(3), clog_debug(3), clog_warn(3), clog_error(3), clog_alert(3), clog_fatal(3)