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 is a static class and 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
-
message | message that will be printed. |
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
-
message | message that will be printed. |
logLevel | one of the HEPH_CL_* macros. |
libName | name of the library thats printing. The default value is "HephLibs". |
◆ LogInfo() [1/2]
static void Heph::ConsoleLogger::LogInfo |
( |
const std::string & | message | ) |
|
|
static |
prints the provided message to the console as INFO.
- Parameters
-
message | message that will be printed. |
◆ LogInfo() [2/2]
static void Heph::ConsoleLogger::LogInfo |
( |
const std::string & | message, |
|
|
const std::string & | libName ) |
|
static |
prints the provided message to the console as INFO.
- Parameters
-
message | message that will be printed. |
libName | name of the library thats printing. The default value is "HephLibs". |
◆ LogWarning() [1/2]
static void Heph::ConsoleLogger::LogWarning |
( |
const std::string & | message | ) |
|
|
static |
prints the provided message to the console as WARNING.
- Parameters
-
message | message that will be printed. |
◆ LogWarning() [2/2]
static void Heph::ConsoleLogger::LogWarning |
( |
const std::string & | message, |
|
|
const std::string & | libName ) |
|
static |
prints the provided message to the console as WARNING.
- Parameters
-
message | message that will be printed. |
libName | name of the library thats printing. The default value is "HephLibs". |
◆ LogError() [1/2]
static void Heph::ConsoleLogger::LogError |
( |
const std::string & | message | ) |
|
|
static |
prints the provided message to the console as ERROR.
- Parameters
-
message | message that will be printed. |
◆ LogError() [2/2]
static void Heph::ConsoleLogger::LogError |
( |
const std::string & | message, |
|
|
const std::string & | libName ) |
|
static |
prints the provided message to the console as ERROR.
- Parameters
-
message | message that will be printed. |
libName | name of the library thats printing. The default value is "HephLibs". |
◆ LogSuccess() [1/2]
static void Heph::ConsoleLogger::LogSuccess |
( |
const std::string & | message | ) |
|
|
static |
prints the provided message to the console as SUCCESS.
- Parameters
-
message | message that will be printed. |
◆ LogSuccess() [2/2]
static void Heph::ConsoleLogger::LogSuccess |
( |
const std::string & | message, |
|
|
const std::string & | libName ) |
|
static |
prints the provided message to the console as SUCCESS.
- Parameters
-
message | message that will be printed. |
libName | name of the library thats printing. The default value is "HephLibs". |
◆ LogDebug() [1/2]
static void Heph::ConsoleLogger::LogDebug |
( |
const std::string & | message | ) |
|
|
static |
prints the provided message to the console as DEBUG.
- Parameters
-
message | message that will be printed. |
◆ LogDebug() [2/2]
static void Heph::ConsoleLogger::LogDebug |
( |
const std::string & | message, |
|
|
const std::string & | libName ) |
|
static |
prints the provided message to the console as DEBUG.
- Parameters
-
message | message that will be printed. |
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.