Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::LogBackendCout Class Reference

Default backend of the MITK log mechanism. More...

#include <mitkLogBackendCout.h>

Inheritance diagram for mitk::LogBackendCout:
Collaboration diagram for mitk::LogBackendCout:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LogBackendCout()

mitk::LogBackendCout::LogBackendCout ( )

◆ ~LogBackendCout()

mitk::LogBackendCout::~LogBackendCout ( )
override

Member Function Documentation

◆ GetOutputType()

OutputType mitk::LogBackendCout::GetOutputType ( ) const
overridevirtual
Returns
The type of this backend.

Implements mitk::LogBackendBase.

◆ ProcessMessage()

void mitk::LogBackendCout::ProcessMessage ( const LogMessage message)
overridevirtual

Called by the MITK log mechanism if the object is registered and a log message is emitted.

Parameters
messageLogging message which was emitted.

Implements mitk::LogBackendText.

◆ SetFull()

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).


The documentation for this class was generated from the following file: