Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: tnlLog.h File Reference

# tnlLog.h File Reference

`#include "tnlBitSet.h"`
`#include "tnl.h"`

## Namespaces

namespace | TNL

## Data Structures

class | TNL::LogConsumer
| LogConsumer is the base class for the message logging system in TNL. More...
struct | TNL::LogType
struct | TNL::LogTypeRef

## Defines

#define | TNLLogMessage(logType, message) { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); logprintf("%s", message); TNL::LogType::setCurrent(NULL); } }
| Logs a message of the specified type to the currently active LogConsumers.
#define | TNLLogMessageV(logType, message) { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); logprintf message; TNL::LogType::setCurrent(NULL); } }
| Logs a printf-style variable argument message of the specified type to the currently active LogConsumers.
#define | TNLLogEnable(logType, enabled) { static TNL::LogTypeRef theType(#logType); theType.theLogType->isEnabled = enabled; }
#define | TNLLogBlock(logType, code) { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); { code } TNL::LogType::setCurrent(NULL); } }

## Functions

void | TNL::logprintf (const char *format,...)
| Global interface to the TNL logging system.

## Define Documentation

#define TNLLogMessage | ( | logType,
|  | message |  | ) | { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); logprintf("%s", message); TNL::LogType::setCurrent(NULL); } }

Logs a message of the specified type to the currently active LogConsumers.

#define TNLLogMessageV | ( | logType,
|  | message |  | ) | { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); logprintf message; TNL::LogType::setCurrent(NULL); } }

Logs a printf-style variable argument message of the specified type to the currently active LogConsumers.

#define TNLLogEnable | ( | logType,
|  | enabled |  | ) | { static TNL::LogTypeRef theType(#logType); theType.theLogType->isEnabled = enabled; }

#define TNLLogBlock | ( | logType,
|  | code |  | ) | { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); { code } TNL::LogType::setCurrent(NULL); } }