version 1.6, 2006/08/15 17:24:21
|
version 1.7, 2006/11/14 18:34:53
|
|
|
// and maps it to Pegasus logger severity. Otherwise, default value | // and maps it to Pegasus logger severity. Otherwise, default value |
// is used. | // is used. |
| |
Uint32 severityPos = indication.findProperty(CIMName |
Uint32 severityPos = |
("PerceivedSeverity")); |
indication.findProperty(CIMName("PerceivedSeverity")); |
| |
if (severityPos != PEG_NOT_FOUND) | if (severityPos != PEG_NOT_FOUND) |
{ | { |
|
|
| |
// writes the formatted indication to a system log file | // writes the formatted indication to a system log file |
_writeToSystemLog(ident_name, severity, indicationText); | _writeToSystemLog(ident_name, severity, indicationText); |
|
|
} | } |
catch (CIMException & c) | catch (CIMException & c) |
{ | { |
|
|
"Failed to deliver indication to system log file."); | "Failed to deliver indication to system log file."); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
| |
throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_FAILED, |
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, MessageLoaderParms( |
MessageLoaderParms("Handler.SystemLogListenerDestination." |
"Handler.SystemLogListenerDestination.SystemLogListenerDestination." |
"SystemLogListenerDestination.FAILED_TO_DELIVER_INDICATION_TO_SYSTEM_LOG", |
"FAILED_TO_DELIVER_INDICATION_TO_SYSTEM_LOG", |
"Failed to deliver indication to system log file.")); | "Failed to deliver indication to system log file.")); |
} | } |
| |