version 1.1.2.5, 2001/08/21 23:20:55
|
version 1.1.2.6, 2001/10/24 20:44:37
|
|
|
| |
#ifdef PEGASUS_REMOVE_TRACE | #ifdef PEGASUS_REMOVE_TRACE |
| |
|
inline static void traceBuffer( |
|
const char* fileName, |
|
const Uint32 lineNum, |
|
const Uint32 traceComponent, |
|
const Uint32 traceLevel, |
|
const char* data, |
|
const Uint32 size) |
|
{ |
|
// empty function |
|
} |
|
inline static void traceBuffer( |
|
const Uint32 traceComponent, |
|
const Uint32 traceLevel, |
|
const char* data, |
|
const Uint32 size) |
|
{ |
|
// empty function |
|
} |
|
|
inline static void trace( | inline static void trace( |
const Uint32 traceComponent, | const Uint32 traceComponent, |
const Uint32 traceLevel, | const Uint32 traceLevel, |
|
|
| |
| |
#else | #else |
|
/** Traces the specified number of bytes in a given buffer |
|
@param traceComponent component being traced |
|
@param traceLevel trace level of the trace message |
|
@param data buffer to be traced |
|
@param size number of bytes to be traced |
|
*/ |
|
inline static void traceBuffer( |
|
const Uint32 traceComponent, |
|
const Uint32 traceLevel, |
|
const char* data, |
|
const Uint32 size) |
|
{ |
|
_traceBuffer( traceComponent, traceLevel, data, size ); |
|
} |
|
|
|
/** Traces the specified number of bytes in a given buffer |
|
Overloaded to include the filename and the line number |
|
of trace origin. |
|
@param fileName filename of the trace originator |
|
@param lineNum line number of the trace originator |
|
@param traceComponent component being traced |
|
@param traceLevel trace level of the trace message |
|
@param data buffer to be traced |
|
@param size size of the buffer |
|
*/ |
|
inline static void traceBuffer( |
|
const char* fileName, |
|
const Uint32 lineNum, |
|
const Uint32 traceComponent, |
|
const Uint32 traceLevel, |
|
const char* data, |
|
const Uint32 size) |
|
{ |
|
_traceBuffer( fileName, lineNum, |
|
traceComponent, traceLevel, data, size ); |
|
} |
|
|
| |
/** Traces the given message | /** Traces the given message |
@param traceComponent component being traced | @param traceComponent component being traced |
|
|
// Message Strings for Logger | // Message Strings for Logger |
static const char _LOG_MSG1[]; | static const char _LOG_MSG1[]; |
static const char _LOG_MSG2[]; | static const char _LOG_MSG2[]; |
|
static const char _LOG_MSG3[]; |
| |
// Checks if trace is enabled for the given component and trace level | // Checks if trace is enabled for the given component and trace level |
// @param traceComponent component being traced | // @param traceComponent component being traced |
|
|
const char* fmt, | const char* fmt, |
va_list argList); | va_list argList); |
| |
|
// Traces the specified number of bytes in a given buffer |
|
// @param traceComponent component being traced |
|
// @param traceLevel trace level of the trace message |
|
// @param data buffer to be traced |
|
// @param size number of bytes to be traced |
|
static void _traceBuffer( |
|
const Uint32 traceComponent, |
|
const Uint32 traceLevel, |
|
const char* data, |
|
const Uint32 size); |
|
|
|
// Traces the specified number of bytes in a given buffer |
|
// Overloaded to include the filename and the line number |
|
// of trace origin. |
|
// @param fileName filename of the trace originator |
|
// @param lineNum line number of the trace originator |
|
// @param traceComponent component being traced |
|
// @param traceLevel trace level of the trace message |
|
// @param data buffer to be traced |
|
// @param size size of the buffer |
|
static void _traceBuffer( |
|
const char* fileName, |
|
const Uint32 lineNum, |
|
const Uint32 traceComponent, |
|
const Uint32 traceLevel, |
|
const char* data, |
|
const Uint32 size); |
|
|
// Called by all the trace interfaces to log message to the | // Called by all the trace interfaces to log message to the |
// trace file | // trace file |
// @param fileName filename of the trace originator | // @param fileName filename of the trace originator |
|
|
const Uint32 traceComponent, | const Uint32 traceComponent, |
const char* message, | const char* message, |
const char* fmt, | const char* fmt, |
va_list argList); |
va_list argList=0); |
| |
// Traces method enter | // Traces method enter |
// @param fileName filename of the trace originator | // @param fileName filename of the trace originator |