This class is an abstract superclass for logging text backends. It adds string formatting methods to the backend interface BackendBase. Accordingly backends that inherit from this class can be registered in the mbi logging mechanism.
More...
#include <mbilogTextBackendBase.h>
This class is an abstract superclass for logging text backends. It adds string formatting methods to the backend interface BackendBase. Accordingly backends that inherit from this class can be registered in the mbi logging mechanism.
Documentation
Definition at line 28 of file mbilogTextBackendBase.h.
◆ ~TextBackendBase()
mbilog::TextBackendBase::~TextBackendBase |
( |
| ) |
|
|
override |
◆ AppendTimeStamp()
void mbilog::TextBackendBase::AppendTimeStamp |
( |
std::ostream & |
out | ) |
|
|
protected |
Writes the system time to the given stream.
◆ FormatFull() [1/2]
void mbilog::TextBackendBase::FormatFull |
( |
const LogMessage & |
l, |
|
|
int |
threadID = 0 |
|
) |
| |
|
protected |
Method formats the given LogMessage in the full/long format and writes it to std::cout.
- Parameters
-
l | |
threadID | Can be set to the threadID where the logging message was emitted. Is 0 by default. |
◆ FormatFull() [2/2]
void mbilog::TextBackendBase::FormatFull |
( |
std::ostream & |
out, |
|
|
const LogMessage & |
l, |
|
|
int |
threadID = 0 |
|
) |
| |
|
protected |
Method formats the given LogMessage in the full/long format and writes it to the given std::ostream.
- Parameters
-
out | |
l | |
threadID | Can be set to the threadID where the logging message was emitted. Is 0 by default. |
◆ FormatSmart() [1/2]
void mbilog::TextBackendBase::FormatSmart |
( |
const LogMessage & |
l, |
|
|
int |
threadID = 0 |
|
) |
| |
|
protected |
Method formats the given LogMessage in the smart/short format and writes it to std::cout.
- Parameters
-
l | |
threadID | Can be set to the threadID where the logging message was emitted. Is 0 by default. |
◆ FormatSmart() [2/2]
void mbilog::TextBackendBase::FormatSmart |
( |
std::ostream & |
out, |
|
|
const LogMessage & |
l, |
|
|
int |
threadID = 0 |
|
) |
| |
|
protected |
Method formats the given LogMessage in the smart/short format and writes it to the given std::ostream.
- Parameters
-
out | |
l | |
threadID | Can be set to the threadID where the logging message was emitted. Is 0 by default. |
◆ FormatSmartWindows()
Special variant of method FormatSmart which uses colored messages (only for windows).
◆ ProcessMessage()
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.
- Parameters
-
logMessage | Logging message which was emitted. |
Implements mbilog::BackendBase.
Implemented in mbilog::BackendCout, and mitk::LoggingBackend.
The documentation for this class was generated from the following file: