#include <syslog.h>
Go to the source code of this file.
Defines | |
#define | ERIPC_LOGGING_ON 0 |
#define | ERIPC_WARNING_ON 1 |
#define | ERIPC_ERROR_ON 1 |
#define | SYSLOG_ON 1 |
#define | ERIPC_LOGPRINTF(x, args...) do {} while (0) |
#define | ERIPC_WARNPRINTF(x, args...) |
#define | ERIPC_ERRORPRINTF(x, args...) |
The value of ERIPC_X_ON (with X one of LOGGING, WARNING or ERROR) determines whether a message will be printed. The value as defined in this file can be overruled by defining them before the inclusion of this file.
This file is best included in c files only.
Definition in file eripclog.h.
#define ERIPC_ERROR_ON 1 |
Definition at line 41 of file eripclog.h.
#define ERIPC_ERRORPRINTF | ( | x, | |||
args... | ) |
Value:
{\ syslog(LOG_ERR, "(E)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\ fprintf(stderr, "(E)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\ }
Definition at line 78 of file eripclog.h.
#define ERIPC_LOGGING_ON 0 |
Definition at line 39 of file eripclog.h.
#define ERIPC_LOGPRINTF | ( | x, | |||
args... | ) | do {} while (0) |
Definition at line 59 of file eripclog.h.
#define ERIPC_WARNING_ON 1 |
Definition at line 40 of file eripclog.h.
#define ERIPC_WARNPRINTF | ( | x, | |||
args... | ) |
Value:
{\ syslog(LOG_WARNING, "(W)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\ fprintf(stderr, "(W)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\ }
Definition at line 64 of file eripclog.h.
#define SYSLOG_ON 1 |
Definition at line 43 of file eripclog.h.