MochiEngine
Loading...
Searching...
No Matches
Log macros

Macros

#define LOG_INFO(x)
 Logs debug information.
#define LOG_OK(x)
 Logs information about the success of a process.
#define LOG_WARNING(x)
 Logs warnings.
#define LOG_ERROR(x)
 Logs errors.
#define LOG_PANIC(x)
 Logs an error that should never happened if programmed correctly.

Variables

constexpr const char * LOG_NOCOLOR = "\033[0m"
constexpr const char * LOG_COLOR_GREEN = "\x1B[32m"
constexpr const char * LOG_COLOR_YELLOW = "\x1B[33m"
constexpr const char * LOG_COLOR_RED = "\x1B[31m"
constexpr const char * LOG_COLOR_PANIC = "\x1B[91m"

Detailed Description

Macro Definition Documentation

◆ LOG_ERROR

#define LOG_ERROR ( x)
Value:
(std::cout << LOG_COLOR_RED << x << " (" << __FILE__ << ":" << __LINE__ << ")" << LOG_NOCOLOR << std::endl)

Logs errors.

◆ LOG_INFO

#define LOG_INFO ( x)
Value:
(std::cout << LOG_NOCOLOR << x << " (" << __FILE__ << ":" << __LINE__ << ")" << LOG_NOCOLOR << std::endl)

Logs debug information.

◆ LOG_OK

#define LOG_OK ( x)
Value:
(std::cout << LOG_COLOR_GREEN << x << " (" << __FILE__ << ":" << __LINE__ << ")" << LOG_NOCOLOR << std::endl)

Logs information about the success of a process.

◆ LOG_PANIC

#define LOG_PANIC ( x)
Value:
(std::cout << LOG_COLOR_PANIC << x << " (" << __FILE__ << ":" << __LINE__ << ")" << LOG_NOCOLOR << std::endl)

Logs an error that should never happened if programmed correctly.

◆ LOG_WARNING

#define LOG_WARNING ( x)
Value:
(std::cout << LOG_COLOR_YELLOW << x << " (" << __FILE__ << ":" << __LINE__ << ")" << LOG_NOCOLOR << std::endl)

Logs warnings.