(file) Return to Logger.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Logger.cpp between version 1.28.6.3 and 1.36

version 1.28.6.3, 2003/08/14 11:55:42 version 1.36, 2004/10/17 20:39:17
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%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
Line 27 
Line 31 
 //              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
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 35 
Line 40 
 #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;
Line 243 
Line 247 
             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();
Line 262 
Line 267 
             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
     }     }
Line 536 
Line 541 
  
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
   


Legend:
Removed from v.1.28.6.3  
changed lines
  Added in v.1.36

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2