version 1.2, 2005/02/26 08:52:15
|
version 1.3.8.1, 2006/02/10 16:11:44
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; | // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // EMC Corporation; VERITAS Software Corporation; The Open Group. |
// |
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
#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 |
|
|
CIMInstance& indication, | CIMInstance& indication, |
CIMInstance& handler, | CIMInstance& handler, |
CIMInstance& subscription, | CIMInstance& subscription, |
ContentLanguages & contentLanguages) |
ContentLanguageList & contentLanguages) |
{ | { |
PEG_METHOD_ENTER (TRC_IND_HANDLER, | PEG_METHOD_ENTER (TRC_IND_HANDLER, |
"SystemLogListenerDestination::handleIndication"); | "SystemLogListenerDestination::handleIndication"); |
|
|
| |
#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 |
| |