scribble/inc/ScribbleLog.h File Reference

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

#include <syslog.h>

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

Go to the source code of this file.

Defines

#define SB_LOGGING_ON   0
#define SB_WARNING_ON   0
#define SB_ERROR_ON   1
#define SB_PAGEBAR_ON   0
#define SB_TOOLBAR_ON   0
#define SB_IPC_ON   0
#define SB_FM_ON   0
#define SB_INK_ON   0
#define SB_INKERR_ON   1
#define SB_TIME_ON   0
#define SYSLOG_ON   1
#define SB_LOGPRINTF(x, args...)   do {} while (0)
#define SB_WARNPRINTF(x, args...)   do {} while (0)
#define SB_ERRORPRINTF(x, args...)
#define SB_IPCPRINTF(x, args...)   do {} while (0)
#define SB_PAGEBARPRINTF(x, args...)   do {} while (0)
#define SB_TOOLBARPRINTF(x, args...)   do {} while (0)
#define SB_FMPRINTF(x, args...)   do {} while (0)
#define SB_INKPRINTF(x, args...)   do {} while (0)
#define SB_INKERRPRINTF(x, args...)
#define SB_TIMEDISPLAY(x, args...)   do {} while (0)


Detailed Description

ScribbleLog - enable/disable messages printed to stderr.

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

<File description>=""> The value of SB_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 ScribbleLog.h.


Define Documentation

#define SB_ERROR_ON   1

Definition at line 41 of file ScribbleLog.h.

#define SB_ERRORPRINTF ( x,
args...   ) 

Value:

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

Definition at line 88 of file ScribbleLog.h.

#define SB_FM_ON   0

Definition at line 47 of file ScribbleLog.h.

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

Definition at line 153 of file ScribbleLog.h.

#define SB_INK_ON   0

Definition at line 49 of file ScribbleLog.h.

#define SB_INKERR_ON   1

Definition at line 50 of file ScribbleLog.h.

#define SB_INKERRPRINTF ( x,
args...   ) 

Value:

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

Definition at line 172 of file ScribbleLog.h.

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

Definition at line 167 of file ScribbleLog.h.

#define SB_IPC_ON   0

Definition at line 45 of file ScribbleLog.h.

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

Definition at line 111 of file ScribbleLog.h.

#define SB_LOGGING_ON   0

Definition at line 39 of file ScribbleLog.h.

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

Definition at line 69 of file ScribbleLog.h.

#define SB_PAGEBAR_ON   0

Definition at line 43 of file ScribbleLog.h.

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

Definition at line 125 of file ScribbleLog.h.

#define SB_TIME_ON   0

Definition at line 51 of file ScribbleLog.h.

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

Definition at line 206 of file ScribbleLog.h.

#define SB_TOOLBAR_ON   0

Definition at line 44 of file ScribbleLog.h.

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

Definition at line 139 of file ScribbleLog.h.

#define SB_WARNING_ON   0

Definition at line 40 of file ScribbleLog.h.

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

Definition at line 83 of file ScribbleLog.h.

#define SYSLOG_ON   1

Definition at line 53 of file ScribbleLog.h.


Generated on Sun Dec 14 17:14:29 2008 by  doxygen 1.5.6