Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Default backend of the MITK log mechanism. More...
#include <mitkLogBackendCout.h>
Public Member Functions | |
LogBackendCout () | |
~LogBackendCout () override | |
void | ProcessMessage (const LogMessage &message) override |
Called by the MITK log mechanism if the object is registered and a log message is emitted. More... | |
void | SetFull (bool full) |
Sets the formatting mode. More... | |
OutputType | GetOutputType () const override |
Public Member Functions inherited from mitk::LogBackendText | |
~LogBackendText () override | |
Public Member Functions inherited from mitk::LogBackendBase | |
virtual | ~LogBackendBase () |
Additional Inherited Members | |
Public Types inherited from mitk::LogBackendBase | |
enum | OutputType { OutputType::Console, OutputType::File, OutputType::Other } |
Protected Member Functions inherited from mitk::LogBackendText | |
void | FormatSmart (const LogMessage &message, int threadID=0) |
Format the given message in the smart/short format and writes it to std::cout. More... | |
void | FormatFull (const LogMessage &message, int threadID=0) |
Format the given message in the full/long format and writes it to std::cout. More... | |
void | FormatSmart (std::ostream &out, const LogMessage &message, int threadID=0) |
Format the given message in the smart/short format and writes it to the given std::ostream. More... | |
void | FormatFull (std::ostream &out, const LogMessage &message, int threadID=0) |
Format the given message in the full/long format and writes it to the given std::ostream. More... | |
void | AppendTimeStamp (std::ostream &out) |
Write system time to the given stream. More... | |
void | FormatSmartWindows (const LogMessage &message, int) |
Special variant of method FormatSmart which uses colored messages (only for Windows). More... | |
Default backend of the MITK log mechanism.
This backend is used if no other backend is registered. The backend formats the log messages to a normal string and writes them to std::cout.
Definition at line 25 of file mitkLogBackendCout.h.
mitk::LogBackendCout::LogBackendCout | ( | ) |
|
override |
|
overridevirtual |
Implements mitk::LogBackendBase.
|
overridevirtual |
Called by the MITK log mechanism if the object is registered and a log message is emitted.
message | Logging message which was emitted. |
Implements mitk::LogBackendText.
void mitk::LogBackendCout::SetFull | ( | bool | full | ) |
Sets the formatting mode.
If true, long messages will be displayed. Default is false (short/smart messages). Long messages provide all information and are capable to be postprocessed (e.g. in a web viewer).