#include <report.hpp>
The standard ReportWriter writing the message to std::cout and std::cerr. The global formatter singleton is used is used to process the objects in the report message. This is by default of type FormatterPythonStyle. See method * Formatter::GetDefault for more information.
class Singleton<ReportWriterStdIO> class Report
Definition at line 273 of file report.hpp.
Public Methods | |
| virtual ALIB_API void | NotifyActivation (Phase phase) override |
| virtual ALIB_API void | Report (Message &msg) override |
Public Methods inherited from ReportWriter | |
| virtual | ~ReportWriter () |
Public Methods inherited from Singleton< TDerivedClass > | |
| virtual | ~Singleton () |
Private Methods | |
| ALIB_API | ReportWriterStdIO () |
Additional Inherited Members | |
Public Static Methods inherited from Singleton< TDerivedClass > | |
| static TDerivedClass & | GetSingleton () |
Protected Static Fields inherited from Singleton< TDerivedClass > | |
| static TDerivedClass * | singleton = nullptr |
|
inlineprivate |
Private constructor, while parent class Singleton is friend. Therefore, only one instance may exist.
Definition at line 286 of file report.hpp.
|
overridevirtual |
Notify activation/deactivation
| phase | Information if activated or deactivated. |
Implements ReportWriter.
Definition at line 165 of file report.cpp.
Writes the prefix "ALib Report (Error):" (respectively "ALib Report (Warning):" and the error message to the cout. On Windows platform, if a debugger is present, the message is also written using OutputDebugStringA.
If the first member of msg is of type string and it's contents follow the rules given with (higher level) module ALib in respect to valid domain path detection then this string is followed by a colon and a space (": ") to separate this "topic" from the rest of the message.
| msg | The message to report. |
Implements ReportWriter.
Definition at line 178 of file report.cpp.