mm_log_warn3
Add a formatted message to the log file
Part of mm_log_fatal(3).
Usage
void mm_log_fatal(msg, ...
);
void mm_log_error(msg, ...
);
void mm_log_warn(msg, ...
);
void mm_log_info(msg, ...
);
void mm_log_debug(msg, ...
);
Link with
-lmmlib
Overview
Those macros writes a log entry (using mm_log(3)) using the level specified by the macro name. If the preprocessor definition MM_LOG_MAXLEVEL is smaller than the corresponding level of the macro, this macros is simply not exanded in the code.
The module name in the location string is defined by MM_LOG_MODULE_NAME. If unset when including mmlog.h, this definition is initialized to the value of PACKAGE_NAME. If MM_LOG_VERBOSE_LOCATION is defined, the filename and line number are prepended to the location string.
Return value
None.
Thread safety
mm_log() is thread-safe.