connectionMgr/inc/connectionMgrLog.h File Reference

connectionMgr - enable/disable messages printed to stderr. More...

#include <stdio.h>
#include <syslog.h>

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

Go to the source code of this file.

Defines

#define CN_DISPLAY_ON   0
#define CN_LOGGING_ON   0
#define CN_WARNING_ON   1
#define CN_ERROR_ON   1
#define CN_SELECTION_ON   0
#define CN_LANGUAGE_ON   0
#define CN_STORE_ON   1
#define CN_IPC_ON   0
#define SYSLOG_ON   1
#define CN_DMPRINTF(x, args...)   do {} while (0)
#define CN_STOREPRINTF(x, args...)
#define CN_SELPRINTF(x, args...)   do {} while (0)
#define CN_LANGUAGEPRINTF(x, args...)   do {} while (0)
#define CN_LOGPRINTF(x, args...)   do {} while (0)
#define CN_WARNPRINTF(x, args...)
#define CN_ERRORPRINTF(x, args...)
#define CN_IPCPRINTF(x, args...)   do {} while (0)


Detailed Description

connectionMgr - enable/disable messages printed to stderr.

<File description>=""> The value of CN_X_ON (with X one of LOGGING, WARNING, 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.

Copyright (C) 2007 iRex Technologies BV.

Definition in file connectionMgrLog.h.


Define Documentation

#define CN_DISPLAY_ON   0

Definition at line 38 of file connectionMgrLog.h.

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

Definition at line 64 of file connectionMgrLog.h.

#define CN_ERROR_ON   1

Definition at line 41 of file connectionMgrLog.h.

#define CN_ERRORPRINTF ( x,
args...   ) 

Value:

{\
    syslog(LOG_ERR, "(CN_E)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\
    fprintf(stderr, "(CN_E)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\
}

Definition at line 139 of file connectionMgrLog.h.

#define CN_IPC_ON   0

Definition at line 45 of file connectionMgrLog.h.

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

Definition at line 162 of file connectionMgrLog.h.

#define CN_LANGUAGE_ON   0

Definition at line 43 of file connectionMgrLog.h.

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

Definition at line 106 of file connectionMgrLog.h.

#define CN_LOGGING_ON   0

Definition at line 39 of file connectionMgrLog.h.

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

Definition at line 120 of file connectionMgrLog.h.

#define CN_SELECTION_ON   0

Definition at line 42 of file connectionMgrLog.h.

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

Definition at line 92 of file connectionMgrLog.h.

#define CN_STORE_ON   1

Definition at line 44 of file connectionMgrLog.h.

#define CN_STOREPRINTF ( x,
args...   ) 

Value:

{\
    syslog(LOG_INFO, "(CN_ST)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\
    fprintf(stderr, "(CN_ST)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\
}

Definition at line 69 of file connectionMgrLog.h.

#define CN_WARNING_ON   1

Definition at line 40 of file connectionMgrLog.h.

#define CN_WARNPRINTF ( x,
args...   ) 

Value:

{\
    syslog(LOG_WARNING, "(CN_W)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\
    fprintf(stderr, "(CN_W)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args);\
}

Definition at line 125 of file connectionMgrLog.h.

#define SYSLOG_ON   1

Definition at line 47 of file connectionMgrLog.h.


Generated on Sun Dec 14 17:15:27 2008 by  doxygen 1.5.6