liberdm/include/erdmlog.h File Reference

#include <syslog.h>

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ERDM_LOGGING_ON   0
#define ERDM_WARNING_ON   1
#define ERDM_ERROR_ON   1
#define SYSLOG_ON   1
#define ERDM_LOGPRINTF(x, args...)   do {} while (0)
#define ERDM_WARNPRINTF(x, args...)
#define ERDM_ERRORPRINTF(x, args...)


Define Documentation

#define ERDM_ERROR_ON   1

Definition at line 41 of file erdmlog.h.

#define ERDM_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 erdmlog.h.

#define ERDM_LOGGING_ON   0

Definition at line 39 of file erdmlog.h.

#define ERDM_LOGPRINTF ( x,
args...   )     do {} while (0)

Definition at line 59 of file erdmlog.h.

#define ERDM_WARNING_ON   1

Definition at line 40 of file erdmlog.h.

#define ERDM_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 erdmlog.h.

#define SYSLOG_ON   1

Definition at line 43 of file erdmlog.h.


Generated on Sun Dec 14 17:11:28 2008 by  doxygen 1.5.6