version 1.50, 2011/01/25 12:10:21
|
version 1.54, 2013/07/04 09:54:17
|
|
|
TRC_CMPIPROVIDERINTERFACE, | TRC_CMPIPROVIDERINTERFACE, |
TRC_WSMSERVER, | TRC_WSMSERVER, |
TRC_LOGMSG, | TRC_LOGMSG, |
TRC_WMI_MAPPER_CONSUMER |
TRC_WMI_MAPPER_CONSUMER, |
|
TRC_INTERNALPROVIDER |
}; | }; |
| |
/** Token used for tracing functions. | /** Token used for tracing functions. |
|
|
{ | { |
public: | public: |
| |
|
/** Trace Components list defines the strings repesenting each |
|
TraceComponentId entry. Externalized to allow display of the |
|
possible list of trace components. The size of this list is |
|
defined in _NUM_COMPONENTS variable. |
|
*/ |
|
static char const* TRACE_COMPONENT_LIST[]; |
|
|
/** Trace facilities | /** Trace facilities |
File - tracing occurs to the trace file | File - tracing occurs to the trace file |
Log - tracing occurs through the Pegasus Logger class | Log - tracing occurs through the Pegasus Logger class |
|
|
*/ | */ |
static Boolean setTraceMemoryBufferSize(Uint32 bufferSize); | static Boolean setTraceMemoryBufferSize(Uint32 bufferSize); |
| |
|
/** Set the Max trace File Size and used for the File tracing |
|
@param maxLogFileSizeBytes size of cimserver.trc |
|
*/ |
|
static void setMaxTraceFileSize (const String &size); |
|
|
|
/** Set the Max trace File number |
|
@param maxLogFileNumber number of cimserver.trc in trace folder |
|
*/ |
|
static void setMaxTraceFileNumber(const String &numberOfFiles); |
|
|
/** Flushes the trace buffer to traceFilePath. This method will only | /** Flushes the trace buffer to traceFilePath. This method will only |
have an effect when traceFacility=Memory. | have an effect when traceFacility=Memory. |
*/ | */ |
|
|
(_traceComponentMask & ((Uint64)1 << traceComponent))); | (_traceComponentMask & ((Uint64)1 << traceComponent))); |
} | } |
| |
|
// |
|
//Converts a given string representation of a trace property into Uint32. |
|
//If the string reperesantation is not valid, the returnd bufferSize is 0. |
|
//@param traceProperty The trace property value as string |
|
//@param valueInUint32 Returns the value as Uint32. |
|
//@return Boolean True if specified size is a |
|
// valid string representaion of a Uint32. |
|
static Boolean tracePropertyToUint32( const String& traceProperty, |
|
Uint32& valueInUint32 ); |
|
|
private: | private: |
| |
/** A static single indicator if tracing is turned on allowing to | /** A static single indicator if tracing is turned on allowing to |
|
|
return; | return; |
} | } |
| |
|
|
|
|
#endif /* PEGASUS_REMOVE_TRACE */ | #endif /* PEGASUS_REMOVE_TRACE */ |
| |
//============================================================================== | //============================================================================== |