UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
log.h File Reference
#include <string>
#include <sstream>
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ugdk
 
 ugdk::debug
 

Macros

#define LOG_LEVELS(ACTION)
 These are the log levels. More...
 
#define LIST(X)   X,
 Through macro wizardy(tm), fill the LogLevel enum. More...
 
#define CASE_LOG(X)   case X: return #X;
 

Enumerations

enum  ugdk::debug::LogLevel
 

Functions

const char * ugdk::debug::ConvertLogToString (LogLevel level)
 
void ugdk::debug::RawLog (LogLevel, const std::string &owner, const std::string &message)
 
void ugdk::debug::InsertToStream (std::stringstream &ss)
 
template<typename T , typename... Ts>
void ugdk::debug::InsertToStream (std::stringstream &ss, const T &t, Ts &&...ts)
 
template<typename... Ts>
void ugdk::debug::Log (LogLevel level, const std::string &owner, Ts &&...ts)
 
template<typename... Ts>
void ugdk::debug::DebugLog (LogLevel level, const std::string &owner, Ts &&...ts)
 
template<typename... Ts>
void ugdk::debug::DebugConditionalLog (bool assertion, LogLevel level, const std::string &owner, Ts &&...ts)
 If assertion is false, run the DebugLog command. More...
 

Macro Definition Documentation

#define CASE_LOG (   X)    case X: return #X;

Converts LogLevels into strings.

Parameters
levelThe target log level
Returns
The string associated with the level
#define LIST (   X)    X,

Through macro wizardy(tm), fill the LogLevel enum.

#define LOG_LEVELS (   ACTION)
Value:
ACTION(EMERGENCY) \
ACTION(ALERT) \
ACTION(CRITICAL) \
ACTION(ERROR) \
ACTION(WARNING) \
ACTION(NOTICE) \
ACTION(INFO)

These are the log levels.