(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.41 and 1.42

version 1.41, 2005/10/03 17:29:12 version 1.42, 2005/10/31 16:53:08
Line 63 
Line 63 
     "FATAL"     "FATAL"
 }; };
  
   
 LoggerRep* Logger::_rep = 0; LoggerRep* Logger::_rep = 0;
 String Logger::_homeDirectory = "."; String Logger::_homeDirectory = ".";
  
Line 268 
Line 267 
     }     }
 } }
  
 #if 1  ////////////////////////////////////////////////////////////////////////////////
   //
   // Public methods start here:
   //
   ////////////////////////////////////////////////////////////////////////////////
   
 void Logger::put( void Logger::put(
     LogFileType logFileType,     LogFileType logFileType,
     const String& systemId,     const String& systemId,
Line 285 
Line 289 
     const Formatter::Arg& arg8,     const Formatter::Arg& arg8,
     const Formatter::Arg& arg9)     const Formatter::Arg& arg9)
 { {
     Uint32 logComponent = 0;      if (wouldLog(logLevel))
       {
     Logger::_putInternal(logFileType, systemId, logComponent, logLevel,          Logger::_putInternal(logFileType, systemId, 0, logLevel,
         formatString, String::EMPTY, arg0, arg1, arg2, arg3, arg4, arg5, arg6,              formatString, String::EMPTY, arg0, arg1, arg2, arg3,
         arg7, arg8, arg9);              arg4, arg5, arg6, arg7, arg8, arg9);
       }
 } }
 #endif  
  
 void Logger::put( void Logger::put(
     LogFileType logFileType,     LogFileType logFileType,
Line 299 
Line 303 
     Uint32 logLevel,     Uint32 logLevel,
     const String& formatString)     const String& formatString)
 { {
     Uint32 logComponent = 0;      if (wouldLog(logLevel))
       {
     Logger::_putInternal(logFileType, systemId, logComponent, logLevel,          Logger::_putInternal(logFileType, systemId, 0, logLevel,
         formatString, String::EMPTY);         formatString, String::EMPTY);
 } }
   }
  
 void Logger::put( void Logger::put(
     LogFileType logFileType,     LogFileType logFileType,
Line 312 
Line 317 
     const String& formatString,     const String& formatString,
     const Formatter::Arg& arg0)     const Formatter::Arg& arg0)
 { {
     Uint32 logComponent = 0;      if (wouldLog(logLevel))
       {
     Logger::_putInternal(logFileType, systemId, logComponent, logLevel,          Logger::_putInternal(logFileType, systemId, 0, logLevel,
         formatString, String::EMPTY, arg0);         formatString, String::EMPTY, arg0);
 } }
   }
   
   void Logger::put(
       LogFileType logFileType,
       const String& systemId,
       Uint32 logLevel,
       const String& formatString,
       const Formatter::Arg& arg0,
       const Formatter::Arg& arg1)
   {
       if (wouldLog(logLevel))
       {
           Logger::_putInternal(logFileType, systemId, 0, logLevel,
               formatString, String::EMPTY, arg0, arg1);
       }
   }
   
   void Logger::put(
       LogFileType logFileType,
       const String& systemId,
       Uint32 logLevel,
       const String& formatString,
       const Formatter::Arg& arg0,
       const Formatter::Arg& arg1,
       const Formatter::Arg& arg2)
   {
       if (wouldLog(logLevel))
       {
           Logger::_putInternal(logFileType, systemId, 0, logLevel,
               formatString, String::EMPTY, arg0, arg1, arg2);
       }
   }
  
 // l10n  
 #if 1  
 void Logger::put_l( void Logger::put_l(
     LogFileType logFileType,     LogFileType logFileType,
     const String& systemId,     const String& systemId,
     Uint32 logLevel,     Uint32 logLevel,
     const String& messageId,  // l10n      const String& messageId,
     const String& formatString,     const String& formatString,
     const Formatter::Arg& arg0,     const Formatter::Arg& arg0,
     const Formatter::Arg& arg1,     const Formatter::Arg& arg1,
Line 337 
Line 372 
     const Formatter::Arg& arg8,     const Formatter::Arg& arg8,
     const Formatter::Arg& arg9)     const Formatter::Arg& arg9)
 { {
     Uint32 logComponent = 0;      if (wouldLog(logLevel))
       {
     Logger::_putInternal(logFileType, systemId, logComponent, logLevel,          Logger::_putInternal(logFileType, systemId, 0, logLevel,
         formatString, messageId, arg0, arg1, arg2, arg3, arg4, arg5,         formatString, messageId, arg0, arg1, arg2, arg3, arg4, arg5,
         arg6, arg7, arg8, arg9);         arg6, arg7, arg8, arg9);
 } }
 #endif  }
  
 void Logger::put_l( void Logger::put_l(
      LogFileType logFileType,      LogFileType logFileType,
Line 352 
Line 387 
      const String& messageId,      const String& messageId,
      const String& formatString)      const String& formatString)
 { {
     Uint32 logComponent = 0;      if (wouldLog(logLevel))
       {
     Logger::_putInternal(logFileType, systemId, logComponent, logLevel,          Logger::_putInternal(logFileType, systemId, 0, logLevel,
         formatString, messageId);         formatString, messageId);
 } }
   }
  
 void Logger::put_l( void Logger::put_l(
      LogFileType logFileType,      LogFileType logFileType,
Line 366 
Line 402 
      const String& formatString,      const String& formatString,
      const Formatter::Arg& arg0)      const Formatter::Arg& arg0)
 { {
     Uint32 logComponent = 0;      if (wouldLog(logLevel))
       {
     Logger::_putInternal(logFileType, systemId, logComponent, logLevel,          Logger::_putInternal(logFileType, systemId, 0, logLevel,
         formatString, messageId, arg0);         formatString, messageId, arg0);
 } }
   }
   
   void Logger::put_l(
        LogFileType logFileType,
        const String& systemId,
        Uint32 logLevel,
        const String& messageId,
        const String& formatString,
        const Formatter::Arg& arg0,
        const Formatter::Arg& arg1)
   {
       if (wouldLog(logLevel))
       {
           Logger::_putInternal(logFileType, systemId, 0, logLevel,
               formatString, messageId, arg0, arg1);
       }
   }
   
   void Logger::put_l(
        LogFileType logFileType,
        const String& systemId,
        Uint32 logLevel,
        const String& messageId,
        const String& formatString,
        const Formatter::Arg& arg0,
        const Formatter::Arg& arg1,
        const Formatter::Arg& arg2)
   {
       if (wouldLog(logLevel))
       {
           Logger::_putInternal(logFileType, systemId, 0, logLevel,
               formatString, messageId, arg0, arg1, arg2);
       }
   }
  
 void Logger::trace( void Logger::trace(
     LogFileType logFileType,     LogFileType logFileType,
Line 388 
Line 458 
     const Formatter::Arg& arg8,     const Formatter::Arg& arg8,
     const Formatter::Arg& arg9)     const Formatter::Arg& arg9)
 { {
     Uint32 logLevel = Logger::TRACE;      if (wouldLog(Logger::TRACE))
       {
           Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
               formatString, String::EMPTY, arg0, arg1, arg2, arg3, arg4, arg5,
               arg6, arg7, arg8, arg9);
       }
   }
  
     Logger::_putInternal(  void Logger::trace(
         logFileType,      LogFileType logFileType,
         systemId,      const String& systemId,
         logComponent,      const Uint32 logComponent,
         logLevel,      const String& formatString)
         formatString,  {
 // l10n      if (wouldLog(Logger::TRACE))
         String::EMPTY,      {
         arg0,          Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
         arg1,              formatString, String::EMPTY);
         arg2,      }
         arg3,  }
         arg4,  
         arg5,  void Logger::trace(
         arg6,      LogFileType logFileType,
         arg7,      const String& systemId,
         arg8,      const Uint32 logComponent,
         arg9);      const String& formatString,
       const Formatter::Arg& arg0)
   {
       if (wouldLog(Logger::TRACE))
       {
           Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
               formatString, String::EMPTY, arg0);
       }
   }
   
   void Logger::trace(
       LogFileType logFileType,
       const String& systemId,
       const Uint32 logComponent,
       const String& formatString,
       const Formatter::Arg& arg0,
       const Formatter::Arg& arg1)
   {
       if (wouldLog(Logger::TRACE))
       {
           Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
               formatString, String::EMPTY, arg0, arg1);
       }
   }
   
   void Logger::trace(
       LogFileType logFileType,
       const String& systemId,
       const Uint32 logComponent,
       const String& formatString,
       const Formatter::Arg& arg0,
       const Formatter::Arg& arg1,
       const Formatter::Arg& arg2)
   {
       if (wouldLog(Logger::TRACE))
       {
           Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
               formatString, String::EMPTY, arg0, arg1, arg2);
       }
 } }
  
 // l10n  
 void Logger::trace_l( void Logger::trace_l(
     LogFileType logFileType,     LogFileType logFileType,
     const String& systemId,     const String& systemId,
Line 428 
Line 541 
     const Formatter::Arg& arg8,     const Formatter::Arg& arg8,
     const Formatter::Arg& arg9)     const Formatter::Arg& arg9)
 { {
     Uint32 logLevel = Logger::TRACE;      if (wouldLog(Logger::TRACE))
       {
           Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
               formatString, messageId, arg0, arg1, arg2, arg3, arg4, arg5, arg6,
               arg7, arg8, arg9);
       }
   }
  
     Logger::_putInternal(  void Logger::trace_l(
         logFileType,      LogFileType logFileType,
         systemId,      const String& systemId,
         logComponent,      const Uint32 logComponent,
         logLevel,      const String& messageId,
         formatString,      const String& formatString)
         messageId,  {
         arg0,      if (wouldLog(Logger::TRACE))
         arg1,      {
         arg2,          Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
         arg3,              formatString, messageId);
         arg4,      }
         arg5,  }
         arg6,  
         arg7,  void Logger::trace_l(
         arg8,      LogFileType logFileType,
         arg9);      const String& systemId,
       const Uint32 logComponent,
       const String& messageId,
       const String& formatString,
       const Formatter::Arg& arg0)
   {
       if (wouldLog(Logger::TRACE))
       {
           Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
               formatString, messageId, arg0);
       }
   }
   
   void Logger::trace_l(
       LogFileType logFileType,
       const String& systemId,
       const Uint32 logComponent,
       const String& messageId,
       const String& formatString,
       const Formatter::Arg& arg0,
       const Formatter::Arg& arg1)
   {
       if (wouldLog(Logger::TRACE))
       {
           Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
               formatString, messageId, arg0, arg1);
       }
   }
   
   void Logger::trace_l(
       LogFileType logFileType,
       const String& systemId,
       const Uint32 logComponent,
       const String& messageId,
       const String& formatString,
       const Formatter::Arg& arg0,
       const Formatter::Arg& arg1,
       const Formatter::Arg& arg2)
   {
       if (wouldLog(Logger::TRACE))
       {
           Logger::_putInternal(logFileType, systemId, logComponent, Logger::TRACE,
               formatString, messageId, arg0, arg1, arg2);
       }
 } }
  
 void Logger::setHomeDirectory(const String& homeDirectory) void Logger::setHomeDirectory(const String& homeDirectory)
Line 454 
Line 616 
     _homeDirectory = homeDirectory;     _homeDirectory = homeDirectory;
 } }
  
 ////////////////////////////////////////////////////////////////////////////////  
 // Set logLevel.  
 ////////////////////////////////////////////////////////////////////////////////  
 void Logger::setlogLevelMask( const String logLevelList ) void Logger::setlogLevelMask( const String logLevelList )
 { {
     Uint32 position          = 0;     Uint32 position          = 0;
Line 518 
Line 677 
     return ;     return ;
 } }
  
 Boolean Logger::isValidlogLevel(  Boolean Logger::isValidlogLevel(const String logLevel)
     const String logLevel)  
 { {
     // Validate the logLevel and modify the logLevel argument     // Validate the logLevel and modify the logLevel argument
     // to reflect the invalid logLevel     // to reflect the invalid logLevel
Line 561 
Line 719 
     return validlogLevel;     return validlogLevel;
 } }
  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
   


Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2