Logging

Logging — logging facilities

Synopsis

#include <gum/common/gum-log.h>

#define             DBG                                 (frmt,
                                                         ...)
#define             ERR                                 (frmt,
                                                         ...)
#define             INFO                                (frmt,
                                                         ...)
#define             TRACEBACK
#define             WARN                                (frmt,
                                                         ...)

Description

gum/common/gum-log.h file contains logging macros

For example:

    INFO("Object initialized"); 

Details

DBG()

#define             DBG(frmt, args...)

Use this macro to log debug messages. Gum will take care of correctly saving them.

frmt :

format string for the message

... :

arguments for the format string

ERR()

#define             ERR(frmt, args...)

Use this macro to log error messages. Gum will take care of correctly saving them.

frmt :

format string for the message

... :

arguments for the format string

INFO()

#define             INFO(frmt, args...)

Use this macro to log informational messages. Gum will take care of correctly saving them.

frmt :

format string for the message

... :

arguments for the format string

TRACEBACK

#define             TRACEBACK()

This macro prints the current function call stack to stderr.


WARN()

#define             WARN(frmt, args...)

Use this macro to log warning messages. Gum will take care of correctly saving them.

frmt :

format string for the message

... :

arguments for the format string