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 <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
 

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)

◆ ~ConsoleObserverFile()

ConsoleObserverFile::~ConsoleObserverFile ( )
override

References cFileStream.

Member Function Documentation

◆ Name()

const char * Base::ConsoleObserverFile::Name ( void  )
overridevirtual

Reimplemented from Base::ILogger.

◆ SendLog()

void ConsoleObserverFile::SendLog ( const std::string &  msg,
LogStyle  level 
)
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

Base::ofstream Base::ConsoleObserverFile::cFileStream
protected

The documentation for this class was generated from the following files: