/home/tetron/hack/vos/libs/vos/vutil/log.hh File Reference
Detailed Description
Defines Log.
- See also:
- LOG
Definition in file log.hh.
Go to the source code of this file.
Namespaces
- namespace VUtil
Classes
- class VUtil::Log
- The logging class. More...
- The logging class. More...
- class VUtil::Log::StrCmp
Defines
- #define LOG(c, l, m)
- #define VOS_DEFAULT_LOGLEVEL VUtil::LOG_NOTIFY
Enumerations
- enum VUtil::LogLevelSym {
VUtil::LOG_ERROR = 0, VUtil::LOG_WARN, VUtil::LOG_NOTIFY, VUtil::LOG_DETAIL,
VUtil::LOG_DEBUG, VUtil::LOG_VOS_DEBUG, VUtil::LOG_VOS_MSGDATA
}- Symbolic level names for use with the LOG macro. More...
- Symbolic level names for use with the LOG macro. More...
Define Documentation
| #define LOG | ( | c, | |||
| l, | |||||
| m | ) |
Value:
{ \
if(l <= VUtil::Log::masterLogLevel) { \
VUtil::Log* _lg = VUtil::Log::getLog(c); \
if(! _lg) { _lg=new VUtil::Log(c); VUtil::Log::addChannel(_lg); } \
if(_lg->getLevel() >= l) { \
std::ostringstream _x; \
_x << m; \
_lg->log(l, _x.str()); \
} \
} \
}
Definition at line 102 of file log.hh.
Referenced by main().