mCRL2
|
Interface class for output policy. More...
#include <logger.h>
Public Member Functions | |
output_policy () | |
Constructor. | |
virtual | ~output_policy () |
Destructor. | |
virtual void | output (const log_level_t level, const time_t timestamp, const std::string &msg, const bool print_time_information)=0 |
Output message. | |
Interface class for output policy.
Separates the exact way of doing output from the logger class.
|
inline |
|
inlinevirtual |
|
pure virtual |
Output message.
[in] | msg | Message that is written to output. |
[in] | timestamp | Timestamp to use in the output. |
[in] | level | The log level to print the message to. |
[in] | print_time_information | An indication whether the time must be printed. |
Any implementation must assure that output is written using an atomic action, to prevent mixing of different lines into one line in the output.
Implemented in mcrl2::gui::qt::LogRelay, and mcrl2::log::file_output.