#include <string>
#include <sstream>
Go to the source code of this file.
|
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...
|
|
#define CASE_LOG |
( |
|
X | ) |
case X: return #X; |
Converts LogLevels into strings.
- Parameters
-
level | The target log level |
- Returns
- The string associated with the level
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.