version 1.20, 2008/12/16 18:56:00
|
version 1.21, 2008/12/19 10:17:10
|
|
|
{ | { |
private: | private: |
| |
|
enum ErrLogMessageIds |
|
{ |
|
TRCFH_FAILED_TO_OPEN_FILE_SYSMSG, |
|
TRCFH_UNEXPECTED_FILE_OWNER, |
|
TRCFH_FAILED_TO_SET_FILE_PERMISSIONS, |
|
TRCFH_UNABLE_TO_WRITE_TRACE_TO_FILE, |
|
TRCFH_INVALID_FILE_HANDLE |
|
}; |
|
|
/** Open the specified file in append mode and ensure the file owner and | /** Open the specified file in append mode and ensure the file owner and |
permissions are appropriate. | permissions are appropriate. |
@param fileName Full path of the file to open. | @param fileName Full path of the file to open. |
|
|
*/ | */ |
FILE* _openFile(const char* fileName); | FILE* _openFile(const char* fileName); |
| |
|
/** Function writes an error message to the log, but only once. |
|
@param specifies the type of error message |
|
@param parms MessageLoaderParms object containing the localizable |
|
message to log. |
|
*/ |
|
void _logError(ErrLogMessageIds msgID, const MessageLoaderParms & parms); |
|
|
/* File path to write messages | /* File path to write messages |
*/ | */ |
char* _fileName; | char* _fileName; |
|
|
| |
/* Flag to track writing of message to log | /* Flag to track writing of message to log |
*/ | */ |
Boolean _wroteToLog; |
Uint16 _logErrorBitField; |
Boolean _configHasChanged; | Boolean _configHasChanged; |
| |
public: | public: |