SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::helper::logging::ConsoleMessageHandler Class Reference

#include <ConsoleMessageHandler.h>

Inheritance diagram for sofa::helper::logging::ConsoleMessageHandler:

Detailed Description

Print the message on the console using a specified formatter. The Message::Error, Message::Fatal are going to std:cerr while the others are going to std::cout.

Public Member Functions

 ConsoleMessageHandler (MessageFormatter *formatter=nullptr)
 
void process (Message &m) override
 
void setMessageFormatter (MessageFormatter *formatter)
 
- Public Member Functions inherited from sofa::helper::logging::MessageHandler
virtual ~MessageHandler ()
 

Constructor details

sofa::helper::logging::ConsoleMessageHandler::ConsoleMessageHandler ( MessageFormatter formatter = nullptr)

Create a new ConsoleMessageHandler. By default the handler is using the DefaultStyleMessageFormatter object to format the message.

Function details

void sofa::helper::logging::ConsoleMessageHandler::process ( Message m)
overridevirtual
void sofa::helper::logging::ConsoleMessageHandler::setMessageFormatter ( MessageFormatter formatter)