popupmenu/include/log.h File Reference

#include <stdio.h>
#include "config.h"
#include <errno.h>
#include <string.h>
Include dependency graph for popupmenu/include/log.h:

Go to the source code of this file.

Defines

#define LOG_PREFIX   PACKAGE_NAME
#define TESTING_ON   1
#define LOG_OPEN(X)   do {} while (0)
#define LOG_CLOSE()   do {} while (0)
#define LOGPRINTF(format, args...)   do {} while (0)
#define WARNPRINTF(format, args...)   fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args)
#define ERRORPRINTF(format, args...)   fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args)
#define ERRNOPRINTF(format, args...)   fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno))
#define TRACE(format, args...)   do {} while (0)
#define DEBUG(format, args...)   printf(format, ##args)

Define Documentation

#define DEBUG ( format,
args...   )     printf(format, ##args)

Definition at line 112 of file popupmenu/include/log.h.

#define ERRNOPRINTF ( format,
args...   )     fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno))

Definition at line 101 of file popupmenu/include/log.h.

#define ERRORPRINTF ( format,
args...   )     fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args)

Definition at line 100 of file popupmenu/include/log.h.

 
#define LOG_CLOSE (  )     do {} while (0)

Definition at line 70 of file popupmenu/include/log.h.

#define LOG_OPEN (  )     do {} while (0)

Definition at line 69 of file popupmenu/include/log.h.

#define LOG_PREFIX   PACKAGE_NAME

File Name : log.h

Description: Macros for debug printing.

The value of ERREGLOG_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. Copyright (C) 2008 iRex Technologies B.V. All rights reserved.

Definition at line 41 of file popupmenu/include/log.h.

#define LOGPRINTF ( format,
args...   )     do {} while (0)

Definition at line 80 of file popupmenu/include/log.h.

#define TESTING_ON   1

Definition at line 48 of file popupmenu/include/log.h.

#define TRACE ( format,
args...   )     do {} while (0)

Definition at line 109 of file popupmenu/include/log.h.

#define WARNPRINTF ( format,
args...   )     fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args)

Definition at line 87 of file popupmenu/include/log.h.

Generated by  doxygen 1.6.2-20100208