#include <syslog.h>
#include <pthread.h>
#include <sstream>
#include <string>
#include <map>
#include <vector>
Go to the source code of this file.
|
#define | SSTR(message) static_cast<std::ostringstream&>(std::ostringstream().flush() << message).str() |
|
#define | Log(lvl, mymask, where, what) |
|
#define | Err(where, what) |
|
◆ Err
#define Err |
( |
|
where, |
|
|
|
what |
|
) |
| |
Value:do{ \
std::ostringstream outs; \
outs <<
"{" << pthread_self() <<
"}" <<
"!!! dmlite " << where << __func__ <<
" : " << what;
\}while(0)
void log(Level lvl, std::string const &msg) const
static Logger * get()
Definition: logger.h:66
Level
Definition: logger.h:50
◆ Log
#define Log |
( |
|
lvl, |
|
|
|
mymask, |
|
|
|
where, |
|
|
|
what |
|
) |
| |
Value:do{ \
{ \
std::ostringstream outs; \
outs <<
"{" << pthread_self() <<
"}" <<
"[" << lvl <<
"] dmlite " << where <<
" " << __func__ <<
" : " << what;
\ } \
}while(0) \
void log(Level lvl, std::string const &msg) const
static Logger * get()
Definition: logger.h:66
Level
Definition: logger.h:50
◆ SSTR
#define SSTR |
( |
|
message | ) |
static_cast<std::ostringstream&>(std::ostringstream().flush() << message).str() |
◆ LogCfgParm()
void LogCfgParm |
( |
int |
lvl, |
|
|
Logger::bitmask |
mymask, |
|
|
std::string |
where, |
|
|
std::string |
key, |
|
|
std::string |
value |
|
) |
| |