dmlite  0.6
Classes | Macros
logger.h File Reference
#include <syslog.h>
#include <sstream>
#include <string>
#include <map>
#include <vector>
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Logger
 

Macros

#define Log(lvl, mymask, where, what)
 
#define Err(where, what)
 

Macro Definition Documentation

#define Err (   where,
  what 
)
Value:
do{ \
std::ostringstream outs; \
outs << "dmlite " << where << " !! " << __func__ << " : " << what; \
Logger::get()->log((Logger::Level)0, outs.str()); \
}while(0)
static Logger * get()
Definition: logger.h:63
void log(Level lvl, std::string const &msg) const
Level
Definition: logger.h:48
#define Log (   lvl,
  mymask,
  where,
  what 
)
Value:
do{ \
if (Logger::get()->getLevel() >= lvl && Logger::get()->isLogged(mymask)) \
{ \
std::ostringstream outs; \
outs << "dmlite " << where << " " << __func__ << " : " << what; \
Logger::get()->log((Logger::Level)lvl, outs.str()); \
} \
}while(0) \
static Logger * get()
Definition: logger.h:63
void log(Level lvl, std::string const &msg) const
Level
Definition: logger.h:48