SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::helper::logging::RichConsoleStyleMessageFormatter Class Reference

#include <RichConsoleStyleMessageFormatter.h>

The RichConsoleStyleMessageFormatter class. More...

Inheritance diagram for sofa::helper::logging::RichConsoleStyleMessageFormatter:

Detailed Description

The RichConsoleStyleMessageFormatter class.

The class implement a message formatter dedicated to console pretty printing on a console Among other thing it feature formatting using a markdown like syntax:

  • color rendering, 'italics' or italics
  • alignement and wrapping for long message that are then much easier to read.
  • automatic reading of the console number of column for prettier display.

Public Member Functions

void formatMessage (const Message &m, std::ostream &out) override
 

Static Public Member Functions

static RichConsoleStyleMessageFormattergetInstance ()
 

Additional Inherited Members

- Protected Member Functions inherited from sofa::helper::logging::MessageFormatter
 MessageFormatter ()
 
virtual std::string getPrefixText (unsigned int type) const
 
virtual std::ostream & setColor (std::ostream &stream, unsigned int type) const
 

Function details

void sofa::helper::logging::RichConsoleStyleMessageFormatter::formatMessage ( const Message m,
std::ostream &  out 
)
overridevirtual
static RichConsoleStyleMessageFormatter& sofa::helper::logging::RichConsoleStyleMessageFormatter::getInstance ( )
inlinestatic