10 #ifndef WRENCH_S4U_COLORLOGGING_H 11 #define WRENCH_S4U_COLORLOGGING_H 15 #include <simgrid/s4u/Actor.hpp> 24 #define WRENCH_INFO(...) wrench::TerminalOutput::beginThisProcessColor(); XBT_INFO(__VA_ARGS__) ; wrench::TerminalOutput::endThisProcessColor() 26 #define WRENCH_DEBUG(...) wrench::TerminalOutput::beginThisProcessColor(); XBT_DEBUG(__VA_ARGS__) ; wrench::TerminalOutput::endThisProcessColor() 28 #define WRENCH_WARN(...) wrench::TerminalOutput::beginThisProcessColor(); XBT_WARN(__VA_ARGS__) ; wrench::TerminalOutput::endThisProcessColor() 69 static void beginThisProcessColor();
71 static void endThisProcessColor();
73 static void disableColor();
81 static const char * color_codes[];
83 static std::map<simgrid::s4u::Actor *, std::string> colormap;
85 static std::string getThisProcessLoggingColor();
87 static bool color_enabled;
97 #endif //WRENCH_S4U_COLORLOGGING_H Green text.
Definition: TerminalOutput.h:48
static void setThisProcessLoggingColor(Color color)
Set the color of log messages printed to the terminal.
Definition: TerminalOutput.cpp:36
Red text.
Definition: TerminalOutput.h:46
Blue text.
Definition: TerminalOutput.h:52
White text.
Definition: TerminalOutput.h:58
Color
Terminal output color enum.
Definition: TerminalOutput.h:42
Black text.
Definition: TerminalOutput.h:44
Yellow text.
Definition: TerminalOutput.h:50
Color-enabling wrappers around Simgrid's XBT_INFO, XBT_DEBUG, XBT_WARN logging macros.
Definition: TerminalOutput.h:37
Cyan text.
Definition: TerminalOutput.h:56
Magenta text.
Definition: TerminalOutput.h:54
Definition: TerminalOutput.cpp:15