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

Diff for /pegasus/src/Pegasus/Common/Logger.h between version 1.27 and 1.34

version 1.27, 2006/10/17 21:24:41 version 1.34, 2008/08/12 17:35:08
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By: Dave Rosckes (rosckes@us.ibm.com)  
 //              David Dillard, Symantec Corp. (david_dillard@symantec.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_Logger_h #ifndef Pegasus_Logger_h
Line 45 
Line 40 
 #include <Pegasus/Common/System.h> #include <Pegasus/Common/System.h>
 #include <Pegasus/Common/MessageLoader.h> #include <Pegasus/Common/MessageLoader.h>
  
 // The Logger::trace optimization introduces the PEG_LOGGER_TRACE macro which  
 // propagates branch conditions wherever it is used.  The optimization is  
 // disabled for C-Cover builds so the coverage of these branches is not  
 // measured.  
 #ifdef PEGASUS_CCOVER  
 # define PEG_LOGGER_TRACE(ARGS_LIST) \  
     Logger::trace ARGS_LIST  
 #else  
 # define PEG_LOGGER_TRACE(ARGS_LIST) \  
     do \  
     { \  
         if (Logger::wouldLog(Logger::TRACE)) \  
         { \  
             Logger::trace ARGS_LIST ; \  
         } \  
     } \  
     while (0)  
 #endif  
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class LoggerRep; class LoggerRep;
Line 78 
Line 54 
     {     {
         TRACE_LOG,         TRACE_LOG,
         STANDARD_LOG,         STANDARD_LOG,
         AUDIT_LOG,          AUDIT_LOG, // Use only if PEGASUS_ENABLE_AUDIT_LOGGER is defined
         ERROR_LOG,          ERROR_LOG
         DEBUG_LOG  
     };     };
  
     enum { NUM_LOGS = 5 };      enum { NUM_LOGS = 4 };
  
     /** Log file Level - Defines the loglevel of the log entry irrespective of     /** Log file Level - Defines the loglevel of the log entry irrespective of
         which log file it goes into. This is actually a bit mask as defined in         which log file it goes into. This is actually a bit mask as defined in
Line 192 
Line 167 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         Uint32 logLevel,         Uint32 logLevel,
         const String& messageId,          const char* messageId,
         const String& formatString,          const char* formatString,
         const Formatter::Arg& arg0,         const Formatter::Arg& arg0,
         const Formatter::Arg& arg1,         const Formatter::Arg& arg1,
         const Formatter::Arg& arg2,         const Formatter::Arg& arg2,
Line 211 
Line 186 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         Uint32 logLevel,         Uint32 logLevel,
         const String& messageId,          const char* messageId,
         const String& formatString);          const char* formatString);
  
     /** Optimized one-argument form of put_l().     /** Optimized one-argument form of put_l().
     */     */
Line 220 
Line 195 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         Uint32 logLevel,         Uint32 logLevel,
         const String& messageId,          const char* messageId,
         const String& formatString,          const char* formatString,
         const Formatter::Arg& arg0);         const Formatter::Arg& arg0);
  
     /** Optimized two-argument form of put_l().     /** Optimized two-argument form of put_l().
Line 230 
Line 205 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         Uint32 logLevel,         Uint32 logLevel,
         const String& messageId,          const char* messageId,
         const String& formatString,          const char* formatString,
         const Formatter::Arg& arg0,         const Formatter::Arg& arg0,
         const Formatter::Arg& arg1);         const Formatter::Arg& arg1);
  
Line 241 
Line 216 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         Uint32 logLevel,         Uint32 logLevel,
         const String& messageId,          const char* messageId,
         const String& formatString,          const char* formatString,
         const Formatter::Arg& arg0,         const Formatter::Arg& arg0,
         const Formatter::Arg& arg1,         const Formatter::Arg& arg1,
         const Formatter::Arg& arg2);         const Formatter::Arg& arg2);
Line 311 
Line 286 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         const Uint32 logComponent,         const Uint32 logComponent,
         const String& messageId,          const char* messageId,
         const String& formatString,         const String& formatString,
         const Formatter::Arg& arg0,         const Formatter::Arg& arg0,
         const Formatter::Arg& arg1,         const Formatter::Arg& arg1,
Line 330 
Line 305 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         const Uint32 logComponent,         const Uint32 logComponent,
         const String& messageId,          const char* messageId,
         const String& formatString);         const String& formatString);
  
     /** Optimized one-argument form of trace_l().     /** Optimized one-argument form of trace_l().
Line 339 
Line 314 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         const Uint32 logComponent,         const Uint32 logComponent,
         const String& messageId,          const char* messageId,
         const String& formatString,         const String& formatString,
         const Formatter::Arg& arg0);         const Formatter::Arg& arg0);
  
Line 349 
Line 324 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         const Uint32 logComponent,         const Uint32 logComponent,
         const String& messageId,          const char* messageId,
         const String& formatString,         const String& formatString,
         const Formatter::Arg& arg0,         const Formatter::Arg& arg0,
         const Formatter::Arg& arg1);         const Formatter::Arg& arg1);
Line 360 
Line 335 
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         const Uint32 logComponent,         const Uint32 logComponent,
         const String& messageId,          const char* messageId,
         const String& formatString,         const String& formatString,
         const Formatter::Arg& arg0,         const Formatter::Arg& arg0,
         const Formatter::Arg& arg1,         const Formatter::Arg& arg1,
Line 374 
Line 349 
     */     */
     static void setlogLevelMask(const String logLevelList);     static void setlogLevelMask(const String logLevelList);
  
     /** setLogWriteControlMask  
     */  
     static void setLogWriteControlMask(const Uint32);  
   
     /** Returns true if the given string is one of the legal log levels.     /** Returns true if the given string is one of the legal log levels.
     */     */
     static Boolean isValidlogLevel(const String logLevel);     static Boolean isValidlogLevel(const String logLevel);
Line 408 
Line 379 
     static LoggerRep* _rep;     static LoggerRep* _rep;
     static String _homeDirectory;     static String _homeDirectory;
     static Uint32 _severityMask;     static Uint32 _severityMask;
     static Uint32 _writeControlMask;  
  
     static const char   _SEPARATOR;  
     static const Uint32 _NUM_LOGLEVEL;     static const Uint32 _NUM_LOGLEVEL;
  
     static const Boolean _SUCCESS;  
     static const Boolean _FAILURE;  
   
     static void _putInternal(     static void _putInternal(
         LogFileType logFileType,         LogFileType logFileType,
         const String& systemId,         const String& systemId,
         const Uint32 logComponent,         const Uint32 logComponent,
         Uint32 logLevel,         Uint32 logLevel,
         const String& formatString,         const String& formatString,
         const String& messageId,          const char* messageId,
         const Formatter::Arg& arg0 = Formatter::DEFAULT_ARG,         const Formatter::Arg& arg0 = Formatter::DEFAULT_ARG,
         const Formatter::Arg& arg1 = Formatter::DEFAULT_ARG,         const Formatter::Arg& arg1 = Formatter::DEFAULT_ARG,
         const Formatter::Arg& arg2 = Formatter::DEFAULT_ARG,         const Formatter::Arg& arg2 = Formatter::DEFAULT_ARG,


Legend:
Removed from v.1.27  
changed lines
  Added in v.1.34

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2