logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mm_log_fatal, mm_log_error, mm_log_warn, mm_log_info, mm_log_debug - Add a formatted message to the log

Description

       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.

Example

                                                      2012                                       MM_LOG_FATAL(3)

Name

       mm_log_fatal,  mm_log_error,  mm_log_warn, mm_log_info, mm_log_debug - Add a formatted message to the log
       file

Return Value

       None.

Synopsis

#include<mmlog.h>voidmm_log_fatal(msg,...);voidmm_log_error(msg,...);voidmm_log_warn(msg,...);voidmm_log_info(msg,...);voidmm_log_debug(msg,...);

       Link with -lmmlib

Thread Safety

mm_log() is thread-safe.

See Also