version 1.12, 2008/09/02 17:33:37
|
version 1.13, 2008/09/18 08:01:37
|
|
|
void TraceFileHandler::prepareFileHandle(void) | void TraceFileHandler::prepareFileHandle(void) |
{ | { |
Sint32 retCode; | Sint32 retCode; |
|
|
|
if (_configHasChanged) |
|
{ |
|
_reConfigure(); |
|
} |
|
|
// Check if the file has been deleted, if so re-open the file and | // Check if the file has been deleted, if so re-open the file and |
// continue | // continue |
if (!System::exists(_fileName)) | if (!System::exists(_fileName)) |
|
|
Uint32 msgLen, | Uint32 msgLen, |
const char *fmt, va_list argList) | const char *fmt, va_list argList) |
{ | { |
|
if (_configHasChanged) |
|
{ |
|
_reConfigure(); |
|
} |
|
|
if (!_fileHandle) | if (!_fileHandle) |
{ | { |
// The trace file is not open, which means an earlier fopen() was | // The trace file is not open, which means an earlier fopen() was |
|
|
| |
void TraceFileHandler::handleMessage(const char *message, Uint32 msgLen) | void TraceFileHandler::handleMessage(const char *message, Uint32 msgLen) |
{ | { |
|
if (_configHasChanged) |
|
{ |
|
_reConfigure(); |
|
} |
|
|
if (!_fileHandle) | if (!_fileHandle) |
{ | { |
// The trace file is not open, which means an earlier fopen() was | // The trace file is not open, which means an earlier fopen() was |