Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Default backend of the mbi logging mechanism. This backend is used if no other backend is registered. The backend formats the logging messages to a normal string and writes them to std::cout. More...
#include <mbilogBackendCout.h>
Public Member Functions | |
BackendCout () | |
virtual | ~BackendCout () |
virtual void | ProcessMessage (const mbilog::LogMessage &l) override |
This method is called by the mbi logging mechanism if the object is registered in the mbi logging mechanism and a logging message is emitted. The method formats the logging messages to a normal string (depending on formatting mode) and writes it to std::cout. More... | |
void | SetFull (bool full) |
Sets the formatting mode. If true long messages will be displayed. Default is false (short/smart messages). Long messages provide all informations and are also capable to be postproccessed (e.g. in a web viewer). More... | |
virtual OutputType | GetOutputType () const override |
Public Member Functions inherited from mbilog::TextBackendBase | |
virtual | ~TextBackendBase () |
Public Member Functions inherited from mbilog::BackendBase | |
virtual | ~BackendBase () |
Additional Inherited Members | |
Protected Member Functions inherited from mbilog::TextBackendBase | |
void | FormatSmart (const LogMessage &l, int threadID=0) |
Method formats the given LogMessage in the smart/short format and writes it to std::cout. More... | |
void | FormatFull (const LogMessage &l, int threadID=0) |
Method formats the given LogMessage in the full/long format and writes it to std::cout. More... | |
void | FormatSmart (std::ostream &out, const LogMessage &l, int threadID=0) |
Method formats the given LogMessage in the smart/short format and writes it to the given std::ostream. More... | |
void | FormatFull (std::ostream &out, const LogMessage &l, int threadID=0) |
Method formats the given LogMessage in the full/long format and writes it to the given std::ostream. More... | |
void | AppendTimeStamp (std::ostream &out) |
Writes the system time to the given stream. More... | |
void | FormatSmartWindows (const mbilog::LogMessage &l, int) |
Special variant of method FormatSmart which uses colored messages (only for windows). More... | |
Default backend of the mbi logging mechanism. This backend is used if no other backend is registered. The backend formats the logging messages to a normal string and writes them to std::cout.
Definition at line 34 of file mbilogBackendCout.h.
mbilog::BackendCout::BackendCout | ( | ) |
Definition at line 23 of file mbilogBackendCout.cpp.
|
virtual |
Definition at line 28 of file mbilogBackendCout.cpp.
|
overridevirtual |
Implements mbilog::BackendBase.
Definition at line 45 of file mbilogBackendCout.cpp.
References Console.
|
overridevirtual |
This method is called by the mbi logging mechanism if the object is registered in the mbi logging mechanism and a logging message is emitted. The method formats the logging messages to a normal string (depending on formatting mode) and writes it to std::cout.
logMessage | Logging message. |
Implements mbilog::TextBackendBase.
Definition at line 37 of file mbilogBackendCout.cpp.
Referenced by mbilog::DistributeToBackends().
void mbilog::BackendCout::SetFull | ( | bool | full | ) |
Sets the formatting mode. If true long messages will be displayed. Default is false (short/smart messages). Long messages provide all informations and are also capable to be postproccessed (e.g. in a web viewer).
Definition at line 32 of file mbilogBackendCout.cpp.
Referenced by mbilog::DistributeToBackends().