RAII based pattern setter for Logger class. More...
#include <logger.hpp>
Public Member Functions | |
PatternSetter (const std::string &pattern="%v") | |
Set the pattern for the rest of the log messages. More... | |
~PatternSetter () | |
This will restore the previous pattern that was active during the moment this object was created. More... | |
RAII based pattern setter for Logger class.
ML::PatternSetter::PatternSetter | ( | const std::string & | pattern = "%v" | ) |
Set the pattern for the rest of the log messages.
[in] | pattern | pattern to be set |
ML::PatternSetter::~PatternSetter | ( | ) |
This will restore the previous pattern that was active during the moment this object was created.