55 return os <<
"\033[1;" << mod.code <<
"m";
57 return os <<
"\033[0;" << mod.code <<
"m";
64 inline void Warning(
const char* message_str)
68 cout<<yellow_log<<
"[Warning] "<<message_str<<def_log<<endl;
74 inline void Error(
const char* message_str)
78 cout<<red_log<<
"[Error] "<<message_str<<def_log<<endl;
For colored log texts in terminal.
Definition: ColorLog.hh:15
Modifier(Code pCode)
Constructor.
Definition: ColorLog.hh:39
Can be used to generate a specific type of color logs.
Definition: ColorLog.hh:29
void Error(const char *message_str)
Error message log function.
Definition: ColorLog.hh:74
Modifier(Code pCode, bool pBold)
Constructor.
Definition: ColorLog.hh:45
friend std::ostream & operator<<(std::ostream &os, const Modifier &mod)
Defines a special color log operator.
Definition: ColorLog.hh:53
Code
Color code definition.
Definition: ColorLog.hh:17
void Warning(const char *message_str)
Warning message log function.
Definition: ColorLog.hh:64