Base::ConsoleObserverFile Class Reference
The LoggingConsoleObserver class This class is used by the main modules to write Console messages and logs to a file. More...
#include <Console.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 | ~ILogger ()=0 |
Protected Attributes | |
Base::ofstream | cFileStream |
Additional Inherited Members | |
Public Attributes inherited from Base::ILogger | |
bool | bErr |
bool | bLog |
bool | bMsg |
bool | bWrn |
Detailed Description
The LoggingConsoleObserver class This class is used by the main modules to write Console messages and logs to a file.
Constructor & Destructor Documentation
◆ ConsoleObserverFile()
ConsoleObserverFile::ConsoleObserverFile | ( | const char * | sFileName | ) |
References cFileStream, Base::Console(), and Base::ConsoleSingleton::Warning().
◆ ~ConsoleObserverFile()
|
override |
References cFileStream.
Member Function Documentation
◆ Name()
|
overridevirtual |
Reimplemented from Base::ILogger.
◆ SendLog()
|
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.
Member Data Documentation
◆ cFileStream
|
protected |
Referenced by ConsoleObserverFile(), SendLog(), and ~ConsoleObserverFile().
The documentation for this class was generated from the following files:
- src/Base/Console.h
- src/Base/Console.cpp