#include <FileMessageHandler.h>
A message handle that saves the content message passing by in a file. The formatting can be customize by passing a different MessageFormatter in the constructor. Example of use: MessageDispatcher::addHandler(new FileMessageHandler("myfile.log"));
Public Member Functions | |
FileMessageHandler (const char *filename, MessageFormatter *formatter=nullptr) | |
~FileMessageHandler () override | |
void | process (Message &m) override |
bool | isValid () |
sofa::helper::logging::FileMessageHandler::FileMessageHandler | ( | const char * | filename, |
MessageFormatter * | formatter = nullptr |
||
) |
|
override |
bool sofa::helper::logging::FileMessageHandler::isValid | ( | ) |
|
overridevirtual |
Implements sofa::helper::logging::MessageHandler.