version 1.2, 2005/02/26 08:52:15
|
version 1.3, 2005/05/20 21:09:46
|
|
|
#include <Pegasus/Common/CIMType.h> | #include <Pegasus/Common/CIMType.h> |
#include <Pegasus/Common/IndicationFormatter.h> | #include <Pegasus/Common/IndicationFormatter.h> |
| |
#if defined(PEGASUS_USE_SYSLOGS) |
|
#include <syslog.h> |
|
#endif |
|
|
|
#include "SystemLogListenerDestination.h" | #include "SystemLogListenerDestination.h" |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
| |
#if defined(PEGASUS_USE_SYSLOGS) | #if defined(PEGASUS_USE_SYSLOGS) |
| |
// Open the syslog |
System::syslog(identifier, severity, formattedText.getCString()); |
System::openlog(identifier); |
|
|
|
System::syslog(severity, (const char *)formattedText.getCString()); |
|
|
|
// Close the syslog |
|
System::closelog(); |
|
| |
#else | #else |
| |