#include <iostream>
#include <iomanip>
#include <map>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <pthread.h>
#include "carma/util/Time.h"
#include "carma/util/IoLock.h"
#include "carma/util/Program.h"
#include "carma/util/PthreadMutex.h"
#include "carma/util/PthreadRWLock.h"
#include <log4cpp/Category.hh>
#include <log4cpp/Priority.hh>
Go to the source code of this file.
|
|
#define | DPRINT(objptr, classname, statement) {} |
| |
| #define | LOGCMD(objptr, classname, statement) |
| |
| #define | LOGEXCEPTION(objptr, classname, statement) |
| |
| #define | LOGINFO(objptr, classname, statement) |
| |
| #define | LOGPROBLEM(objptr, classname, statement) |
| |
- Author
- Rick Hobbs
Definition in file ConfigChecker.h.
| #define LOGCMD |
( |
|
objptr, |
|
|
|
classname, |
|
|
|
statement |
|
) |
| |
Value:{if(objptr->isLogCmd("All") || objptr->isLogCmd(classname)) {\
const carma::util::IoLock::ScopedCerrLock cerrLock; \
log4cpp::Category& log = objptr->getLogger(); \
std::ostringstream os; \
if (objptr->prettyFunction()) {\
os << "In " << __PRETTY_FUNCTION__ << ": "; \
} \
os << statement; \
log << log4cpp::Priority::INFO << os.str(); \
}}
Definition at line 40 of file ConfigChecker.h.
| #define LOGEXCEPTION |
( |
|
objptr, |
|
|
|
classname, |
|
|
|
statement |
|
) |
| |
Value:{ \
const carma::util::IoLock::ScopedCerrLock cerrLock; \
log4cpp::Category& log = objptr->getLogger(); \
std::ostringstream os; \
os << "In " << __PRETTY_FUNCTION__ << ": "; \
os << statement; \
log << log4cpp::Priority::ERROR << os.str(); \
}
Definition at line 52 of file ConfigChecker.h.
| #define LOGINFO |
( |
|
objptr, |
|
|
|
classname, |
|
|
|
statement |
|
) |
| |
Value:{ \
const carma::util::IoLock::ScopedCerrLock cerrLock; \
log4cpp::Category& log = objptr->getLogger(); \
std::ostringstream os; \
os << "In " << __PRETTY_FUNCTION__ << ": "; \
os << statement; \
log << log4cpp::Priority::INFO << os.str(); \
}
Definition at line 72 of file ConfigChecker.h.
| #define LOGPROBLEM |
( |
|
objptr, |
|
|
|
classname, |
|
|
|
statement |
|
) |
| |
Value:{ \
const carma::util::IoLock::ScopedCerrLock cerrLock; \
log4cpp::Category& log = objptr->getLogger(); \
std::ostringstream os; \
os << "In " << __PRETTY_FUNCTION__ << ": "; \
os << statement; \
log << log4cpp::Priority::WARN << os.str(); \
}
Definition at line 62 of file ConfigChecker.h.