ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions | Variables
Log.h File Reference
#include <sstream>
#include <string>
#include <stdio.h>
#include <sys/time.h>

Go to the source code of this file.

Classes

class  scxml4cpp::Log< T >
 
class  scxml4cpp::Output2FILE
 

Namespaces

 scxml4cpp
 

Macros

#define SCXML4CPP_LOG(level)
 
#define SCXML4CPP_LOG_TRACE()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_TRACE)
 
#define SCXML4CPP_LOG_DEBUG()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG)
 
#define SCXML4CPP_LOG_DEBUG1()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG1)
 
#define SCXML4CPP_LOG_DEBUG2()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG2)
 
#define SCXML4CPP_LOG_DEBUG3()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG3)
 
#define SCXML4CPP_LOG_DEBUG4()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG4)
 
#define SCXML4CPP_LOG_INFO()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_INFO)
 
#define SCXML4CPP_LOG_WARNING()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_WARNING)
 
#define SCXML4CPP_LOG_ERROR()   SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_ERROR)
 

Functions

std::string scxml4cpp::LogNowTime ()
 
void scxml4cpp::LogSetLevel (const std::string &levelName)
 

Variables

const int scxml4cpp::LOG_LEVEL_ERROR = 0
 
const int scxml4cpp::LOG_LEVEL_WARNING = 1
 
const int scxml4cpp::LOG_LEVEL_INFO = 2
 
const int scxml4cpp::LOG_LEVEL_DEBUG = 3
 
const int scxml4cpp::LOG_LEVEL_DEBUG1 = 4
 
const int scxml4cpp::LOG_LEVEL_DEBUG2 = 5
 
const int scxml4cpp::LOG_LEVEL_DEBUG3 = 6
 
const int scxml4cpp::LOG_LEVEL_DEBUG4 = 7
 
const int scxml4cpp::LOG_LEVEL_TRACE = 8
 
const int scxml4cpp::LOG_MAX_LEVEL = LOG_LEVEL_TRACE
 

Macro Definition Documentation

#define SCXML4CPP_LOG (   level)
Value:
if (level > scxml4cpp::LOG_MAX_LEVEL) ; \
else scxml4cpp::Log<scxml4cpp::Output2FILE>().Get(level) << "scxml4cpp " << __FILE__ << " " << __FUNCTION__ << " " << __LINE__ << " "
static FILE *& Stream()
Definition: Log.h:132
Definition: Log.h:43
const int LOG_MAX_LEVEL
Definition: Log.h:35

Definition of the macro used when logging.

#define SCXML4CPP_LOG_DEBUG ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG)
#define SCXML4CPP_LOG_DEBUG1 ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG1)
#define SCXML4CPP_LOG_DEBUG2 ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG2)
#define SCXML4CPP_LOG_DEBUG3 ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG3)
#define SCXML4CPP_LOG_DEBUG4 ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_DEBUG4)
#define SCXML4CPP_LOG_ERROR ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_ERROR)
#define SCXML4CPP_LOG_INFO ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_INFO)
#define SCXML4CPP_LOG_TRACE ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_TRACE)
#define SCXML4CPP_LOG_WARNING ( )    SCXML4CPP_LOG(scxml4cpp::LOG_LEVEL_WARNING)