#include <stdbool.h>
Data Structures | |
struct | hail_log |
Defines | |
#define | ATTR_PRINTF(x, y) |
#define | HAIL_VERBOSE(log,...) |
Print out a CLD session debug message if enabled. | |
#define | HAIL_DEBUG(log,...) |
Print out an application debug message if enabled. | |
#define | HAIL_INFO(log,...) (log)->func(LOG_INFO, __VA_ARGS__) |
Print out an informational log message. | |
#define | HAIL_WARN(log,...) (log)->func(LOG_WARNING, __VA_ARGS__) |
Print out a warning message. | |
#define | HAIL_ERR(log,...) (log)->func(LOG_ERR, __VA_ARGS__) |
Print out an error message. | |
#define | HAIL_CRIT(log,...) (log)->func(LOG_CRIT, __VA_ARGS__) |
Print out a critical warning message. |
#define ATTR_PRINTF | ( | x, | ||
y | ||||
) |
#define HAIL_CRIT | ( | log, | ||
... | ||||
) | (log)->func(LOG_CRIT, __VA_ARGS__) |
Print out a critical warning message.
#define HAIL_DEBUG | ( | log, | ||
... | ||||
) |
if ((log)->debug) { \
(log)->func(LOG_DEBUG, __VA_ARGS__); \
}
Print out an application debug message if enabled.
#define HAIL_ERR | ( | log, | ||
... | ||||
) | (log)->func(LOG_ERR, __VA_ARGS__) |
Print out an error message.
#define HAIL_INFO | ( | log, | ||
... | ||||
) | (log)->func(LOG_INFO, __VA_ARGS__) |
Print out an informational log message.
#define HAIL_VERBOSE | ( | log, | ||
... | ||||
) |
if ((log)->verbose) { \
(log)->func(LOG_DEBUG, __VA_ARGS__); \
}
Print out a CLD session debug message if enabled.
#define HAIL_WARN | ( | log, | ||
... | ||||
) | (log)->func(LOG_WARNING, __VA_ARGS__) |
Print out a warning message.