version 1.28.6.3, 2003/08/14 11:55:42
|
version 1.36, 2004/10/17 20:39:17
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2004//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// 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.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software 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 |
|
|
// sushma_fernandes@hp.com | // sushma_fernandes@hp.com |
// Modified By: Dave Rosckes (IBM) | // Modified By: Dave Rosckes (IBM) |
// rosckes@us.ibm.com | // rosckes@us.ibm.com |
|
// Amit K Arora, IBM (amita@in.ibm.com) for PEP101 |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#include <cstring> | #include <cstring> |
#include "Logger.h" | #include "Logger.h" |
#include "System.h" | #include "System.h" |
#include "Destroyer.h" |
|
#include <Pegasus/Common/MessageLoader.h> //l10n | #include <Pegasus/Common/MessageLoader.h> //l10n |
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
|
|
System::openlog(systemId); | System::openlog(systemId); |
| |
// Log the message | // Log the message |
System::syslog(logLevel,(const char*)localizedMsg.getCStringUTF8()); |
System::syslog(logLevel,(const char*)localizedMsg.getCString()); |
|
|
| |
// Close the syslog. | // Close the syslog. |
System::closelog(); | System::closelog(); |
|
|
if (logLevel & Logger::SEVERE) tmp = "SEVERE "; | if (logLevel & Logger::SEVERE) tmp = "SEVERE "; |
if (logLevel & Logger::FATAL) tmp = "FATAL "; | if (logLevel & Logger::FATAL) tmp = "FATAL "; |
_rep->logOf(logFileType) << System::getCurrentASCIITime() | _rep->logOf(logFileType) << System::getCurrentASCIITime() |
<< " " << tmp << messageString.getCStringUTF8() << endl; |
<< " " << tmp << (const char *)messageString.getCString() << endl; |
| |
#endif | #endif |
} | } |
|
|
| |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
|
|