#include <ConsoleMessageHandler.h>
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) |
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.
|
overridevirtual |
Implements sofa::helper::logging::MessageHandler.
void sofa::helper::logging::ConsoleMessageHandler::setMessageFormatter | ( | MessageFormatter * | formatter | ) |