---
name: "mm_log_fatal"
section: "3"
platform: "linux"
package: "libmmlib-dev"
version: "1.4.2-2.1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mm_log_fatal"
---

# mm\_log\_fatal(3)

Add a formatted message to the log file

## NAME

mm\_log\_fatal, mm\_log\_error, mm\_log\_warn, mm\_log\_info, mm\_log\_debug - Add a formatted message to the log file

## SYNOPSIS

**#include \<mmlog.h\>**

**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*

## 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.

## RETURN VALUE

None.

## THREAD SAFETY

**mm\_log**() is thread-safe.

## EXAMPLE
