wrench::TerminalOutput Class Reference

Color-enabling wrappers around Simgrid's XBT_INFO, XBT_DEBUG, XBT_WARN logging macros. More...

#include <TerminalOutput.h>

Public Types

enum  Color {
  COLOR_BLACK, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE
}
 Terminal output color enum. More...
 

Static Public Member Functions

static void beginThisProcessColor ()
 Turn on colored output for the calling process.
 
static void disableColor ()
 Disable color terminal output for all processes.
 
static void endThisProcessColor ()
 Turn off colored output for the calling process.
 
static void setThisProcessLoggingColor (Color color)
 Set the color of log messages printed to the terminal. More...
 

Detailed Description

Color-enabling wrappers around Simgrid's XBT_INFO, XBT_DEBUG, XBT_WARN logging macros.

Member Enumeration Documentation

◆ Color

Terminal output color enum.

Enumerator
COLOR_BLACK 

Black text.

COLOR_RED 

Red text.

COLOR_GREEN 

Green text.

COLOR_YELLOW 

Yellow text.

COLOR_BLUE 

Blue text.

COLOR_MAGENTA 

Magenta text.

COLOR_CYAN 

Cyan text.

COLOR_WHITE 

White text.

Member Function Documentation

◆ setThisProcessLoggingColor()

void wrench::TerminalOutput::setThisProcessLoggingColor ( Color  color)
static

Set the color of log messages printed to the terminal.

Parameters
colora terminal output color

The documentation for this class was generated from the following files: