class for printing formatted messages to the console.
More...
#include <ConsoleLogger.h>
|
static void | Log (const std::string &message, const char *logLevel) |
|
static void | Log (const std::string &message, const char *logLevel, const std::string &libName) |
|
static void | LogInfo (const std::string &message) |
|
static void | LogInfo (const std::string &message, const std::string &libName) |
|
static void | LogWarning (const std::string &message) |
|
static void | LogWarning (const std::string &message, const std::string &libName) |
|
static void | LogError (const std::string &message) |
|
static void | LogError (const std::string &message, const std::string &libName) |
|
static void | LogSuccess (const std::string &message) |
|
static void | LogSuccess (const std::string &message, const std::string &libName) |
|
static void | LogDebug (const std::string &message) |
|
static void | LogDebug (const std::string &message, const std::string &libName) |
|
static void | EnableColoredOutput () |
|
static void | DisableColoredOutput () |
|
class for printing formatted messages to the console.
- Note
- this class cannot be instantiated.
◆ Log() [1/2]
static void Heph::ConsoleLogger::Log |
( |
const std::string & | message, |
|
|
const char * | logLevel ) |
|
static |
prints the provided message to the console.
- Parameters
-
logLevel | one of the HEPH_CL_* macros. |
◆ Log() [2/2]
static void Heph::ConsoleLogger::Log |
( |
const std::string & | message, |
|
|
const char * | logLevel, |
|
|
const std::string & | libName ) |
|
static |
prints the provided message to the console.
- Parameters
-
logLevel | one of the HEPH_CL_* macros. |
libName | name of the library thats printing. The default value is "HephLibs". |
◆ EnableColoredOutput()
static void Heph::ConsoleLogger::EnableColoredOutput |
( |
| ) |
|
|
static |
enables the use of ASCII color codes.
◆ DisableColoredOutput()
static void Heph::ConsoleLogger::DisableColoredOutput |
( |
| ) |
|
|
static |
disables the use of ASCII color codes.