version 1.39, 2008/09/18 08:01:39
|
version 1.40, 2008/10/01 08:35:49
|
|
|
/////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////// |
| |
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
|
#include <Pegasus/Common/Logger.h> |
#include <Pegasus/Common/FileSystem.h> | #include <Pegasus/Common/FileSystem.h> |
#include <Pegasus/Common/MessageLoader.h> | #include <Pegasus/Common/MessageLoader.h> |
#include <Pegasus/Common/StringConversion.h> | #include <Pegasus/Common/StringConversion.h> |
|
|
properties[i].externallyVisible; | properties[i].externallyVisible; |
| |
// set the default value in the Trace | // set the default value in the Trace |
Tracer::setTraceFile(ConfigManager::getHomedPath( |
Uint32 retCode = Tracer::setTraceFile(ConfigManager::getHomedPath( |
_traceFilePath->defaultValue).getCString()); | _traceFilePath->defaultValue).getCString()); |
|
if ( retCode == 1 ) |
|
{ |
|
Logger::put_l( |
|
Logger::ERROR_LOG,System::CIMSERVER,Logger::WARNING, |
|
MessageLoaderParms( |
|
"Config.TracePropertyOwner.UNABLE_TO_WRITE_TRACE_FILE", |
|
"Unable to write to trace file $0", |
|
_traceFilePath->defaultValue)); |
|
_traceFilePath->currentValue.clear(); |
|
} |
} | } |
else if (String::equalNoCase( | else if (String::equalNoCase( |
properties[i].propertyName, "traceFacility")) | properties[i].propertyName, "traceFacility")) |
|
|
{ | { |
_traceFilePath->currentValue = value; | _traceFilePath->currentValue = value; |
| |
Tracer::setTraceFile(ConfigManager::getHomedPath( |
Uint32 retCode = Tracer::setTraceFile(ConfigManager::getHomedPath( |
_traceFilePath->currentValue).getCString()); | _traceFilePath->currentValue).getCString()); |
|
if ( retCode == 1 ) |
|
{ |
|
Logger::put_l( |
|
Logger::ERROR_LOG,System::CIMSERVER,Logger::WARNING, |
|
MessageLoaderParms( |
|
"Config.TracePropertyOwner.UNABLE_TO_WRITE_TRACE_FILE", |
|
"Unable to write to trace file $0", |
|
_traceFilePath->currentValue)); |
|
_traceFilePath->currentValue.clear(); |
|
} |
} | } |
else if (String::equalNoCase(_traceFacility->propertyName, name)) | else if (String::equalNoCase(_traceFacility->propertyName, name)) |
{ | { |