Log file class. More...
#include <LogFile.h>
Public Member Functions | |
RawLogFile (const char *fileName) | |
Log file constructor. | |
virtual | ~RawLogFile () |
Log file destructor. | |
bool | logPrintf (const char *entryFmt,...) |
Write message to log. | |
bool | logvPrintf (const char *entryFmt, va_list arg) |
Write message to log. |
Log file class.
Raw Log file class provides facilities to store messages to a text file without formatting.
RawLogFile::RawLogFile | ( | const char * | fileName | ) |
Log file constructor.
Initializes the log file object.
fileName | Specifies the log file name |
RawLogFile::~RawLogFile | ( | ) | [virtual] |
Log file destructor.
Destroys the log file object.
bool RawLogFile::logPrintf | ( | const char * | entryFmt, | |
... | ||||
) |
Write message to log.
Writes a text message to the log file. The resulting message will be saved as a separate line in the text file
Linebreaks are Windows style, in order for log files to be easily readable on all systems.
entryFmt | Contains message text. May contain printf-style formatting fields. | |
... | Lists arguments for text format fields, printf-style. |
bool RawLogFile::logvPrintf | ( | const char * | entryFmt, | |
va_list | arg | |||
) |
Write message to log.
Writes a text message to the log file.
Linebreaks are Windows style, in order for log files to be easily readable on all systems.
entryFmt | Contains message text. May contain vsprintf-style formatting fields. | |
arg | Lists arguments for text format fields, vsprintf-style. |