interreality.org [VOS]
[Home] [About]
[Screenshots]
[Download]
[News]
[Community]
[Documentation] [Manual]
[Bugs & Requests] [Wiki]

/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

Classes

Defines

Enumerations


Define Documentation

#define LOG ( c,
l,
 ) 

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().

#define VOS_DEFAULT_LOGLEVEL   VUtil::LOG_NOTIFY

Definition at line 118 of file log.hh.