Logging

Logging — logging facilities

Synopsis

#include <gsignond/gsignond-log.h>

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

Description

gsignond/gsignond-log.h file contains logging macros that plugins and extensions should use for debugging and tracing.

For example:

1
INFO("Plugin %s initialized", plugin_mechanism);

Details

DBG()

#define             DBG(frmt, args...)

Use this macro to log debug messages. GSignond 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. GSignond 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. GSignond 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. GSignond will take care of correctly saving them.

frmt :

format string for the message

... :

arguments for the format string