ESA JPIP server  0.1
trace.h File Reference
#include <string>
#include <iostream>
#include <log4cpp/Category.hh>
#include <log4cpp/FileAppender.hh>
#include <log4cpp/PatternLayout.hh>
#include <log4cpp/OstreamAppender.hh>
Include dependency graph for trace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TraceSystem
 Wrapper used by the application to handle the log/trace messages by means of the log4cpp library. More...
 

Macros

#define LOG4CPP_FIX_ERROR_COLLISION   1
 
#define _RED   "31m"
 
#define _GREEN   "32m"
 
#define _YELLOW   "33m"
 
#define _BLUE   "34m"
 
#define _SET_COLOR(a)   "\033[" a
 
#define _RESET_COLOR()   "\033[0m"
 
#define LOG(a)   (TraceSystem::logStream() << a << log4cpp::eol)
 
#define LOGC(c, a)   (TraceSystem::logStream() << _SET_COLOR(c) << a << _RESET_COLOR() << log4cpp::eol)
 
#define ERROR(a)   (TraceSystem::errorStream() << _SET_COLOR(_RED) << __FILE__ << ":" << __LINE__ << ": ERROR: " << a << _RESET_COLOR() << log4cpp::eol)
 
#define TRACE(a)   {}
 
#define CERR(a)   (cerr << _SET_COLOR(_RED) << a << "!" << _RESET_COLOR() << endl, -1)
 

Macro Definition Documentation

#define _BLUE   "34m"
#define _GREEN   "32m"
#define _RED   "31m"
#define _RESET_COLOR ( )    "\033[0m"
#define _SET_COLOR (   a)    "\033[" a
#define _YELLOW   "33m"
#define CERR (   a)    (cerr << _SET_COLOR(_RED) << a << "!" << _RESET_COLOR() << endl, -1)
#define ERROR (   a)    (TraceSystem::errorStream() << _SET_COLOR(_RED) << __FILE__ << ":" << __LINE__ << ": ERROR: " << a << _RESET_COLOR() << log4cpp::eol)
#define LOG (   a)    (TraceSystem::logStream() << a << log4cpp::eol)
#define LOG4CPP_FIX_ERROR_COLLISION   1
#define LOGC (   c,
 
)    (TraceSystem::logStream() << _SET_COLOR(c) << a << _RESET_COLOR() << log4cpp::eol)
#define TRACE (   a)    {}