9 #include <framework/logging/LogConnectionTxtFile.h> 
   10 #include <framework/logging/LogMessage.h> 
   17   if (!
m_fileStream.is_open()) 
throw std::runtime_error(
"Cannot open output file '" + filename + 
"': " + strerror(errno));
 
virtual ~LogConnectionTxtFile()
The LogConnectionTxtFile destructor.
std::ofstream m_fileStream
The file output stream used for sending the log message.
LogConnectionTxtFile(const std::string &filename, bool append=false)
The constructor.
bool isConnected() override
Returns true if the connection to the text file could be established.
bool sendMessage(const LogMessage &message) override
Sends a log message.
void finalizeOnAbort() override
Make sure the file is closed on abort.
Abstract base class for different kinds of events.