Logging

Logging — logging facilities

Functions

#define TRACEBACK
#define ERR()
#define WARN()
#define INFO()
#define DBG()

Includes

#include <gsignond/gsignond-log.h>

Description

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

For example:

Functions

TRACEBACK

#define             TRACEBACK()

This macro prints the current function call stack to stderr.


ERR()

#define             ERR(frmt, args...)

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

Parameters

frmt

format string for the message

 

...

arguments for the format string

 

WARN()

#define             WARN(frmt, args...)

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

Parameters

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.

Parameters

frmt

format string for the message

 

...

arguments for the format string

 

DBG()

#define             DBG(frmt, args...)

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

Parameters

frmt

format string for the message

 

...

arguments for the format string

 

Types and Values