API
4.4
For C++ developers
|
This sink stores all messages in a string. More...
Public Member Functions | |
void | clear () |
Clear the contents of the string. More... | |
const std::string & | getString () const |
Obtain the string. More... | |
Public Member Functions inherited from OpenSim::LogSink | |
virtual | ~LogSink ()=default |
Protected Member Functions | |
void | sinkImpl (const std::string &msg) override |
This function is invoked whenever a message is logged at the desired Log::Level. More... | |
Protected Member Functions inherited from OpenSim::LogSink | |
virtual void | flushImpl () |
This sink stores all messages in a string.
This is useful for testing the content of logs.
|
inline |
Clear the contents of the string.
|
inline |
Obtain the string.
|
inlineoverrideprotectedvirtual |
This function is invoked whenever a message is logged at the desired Log::Level.
Implements OpenSim::LogSink.