The LoggingConsoleObserver class This class is used by the main modules to write Console messages and logs to a file. More...
#include <ConsoleObserver.h>
Public Member Functions | |
ConsoleObserverFile (const char *sFileName) | |
const char * | Name (void) override |
void | SendLog (const std::string &message, LogStyle level) override |
Used to send a Log message at the given level. More... | |
~ConsoleObserverFile () override | |
Public Member Functions inherited from Base::ILogger | |
ILogger () | |
virtual const char * | Name () |
virtual void | SendLog (const std::string &msg, LogStyle level)=0 |
Used to send a Log message at the given level. More... | |
virtual | ~ILogger ()=0 |
Protected Attributes | |
Base::ofstream | cFileStream |
Additional Inherited Members | |
Public Attributes inherited from Base::ILogger | |
bool | bErr |
bool | bLog |
bool | bMsg |
bool | bWrn |
The LoggingConsoleObserver class This class is used by the main modules to write Console messages and logs to a file.
ConsoleObserverFile::ConsoleObserverFile | ( | const char * | sFileName | ) |
References cFileStream, Base::Console(), and Base::ConsoleSingleton::Warning().
|
override |
References cFileStream.
|
overridevirtual |
Reimplemented from Base::ILogger.
|
overridevirtual |
Used to send a Log message at the given level.
Implements Base::ILogger.
References cFileStream, Base::Error, Base::Log, Base::Message, and Base::Warning.
|
protected |
Referenced by ConsoleObserverFile(), SendLog(), and ~ConsoleObserverFile().