My Project
|
A simple formatter capable of adding message prefixes and colors. More...
#include <MessageFormatter.hpp>
Public Member Functions | |
SimpleMessageFormatter (const bool use_prefix, const bool use_color_coding) | |
Constructor controlling formatting to be applied. | |
SimpleMessageFormatter (const int64_t prefix_flag, const bool use_color_coding) | |
SimpleMessageFormatter (const bool use_color_coding) | |
virtual std::string | format (const int64_t message_flag, const std::string &message) override |
Returns a copy of the input string with a flag-dependant prefix (if use_prefix) and the entire message in a flag-dependent color (if use_color_coding). | |
![]() | |
virtual | ~MessageFormatterInterface ()=default |
Virtual destructor to enable inheritance. | |
A simple formatter capable of adding message prefixes and colors.
|
inlineoverridevirtual |
Returns a copy of the input string with a flag-dependant prefix (if use_prefix) and the entire message in a flag-dependent color (if use_color_coding).
Implements Opm::MessageFormatterInterface.