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

Diff for /pegasus/src/Pegasus/Common/Tracer.h between version 1.1.2.1 and 1.1.2.5

version 1.1.2.1, 2001/07/31 23:57:08 version 1.1.2.5, 2001/08/21 23:20:55
Line 31 
Line 31 
 #define Pegasus_Tracer_h #define Pegasus_Tracer_h
  
 #include <stdarg.h> #include <stdarg.h>
 #include <fstream.h>  #include <fstream>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/System.h> #include <Pegasus/Common/System.h>
 #include <Pegasus/Common/Logger.h> #include <Pegasus/Common/Logger.h>
Line 86 
Line 86 
             // empty function             // empty function
         }         }
  
           static Uint32 setTraceFile(const char* traceFile)
           {
               // empty function
               return 0;
           }
   
           static Uint32 setTraceLevel(const Uint32 traceLevel)
           {
               // empty function
               return 0;
           }
   
           static void setTraceComponents(String traceComponents)
           {
               // empty function
           }
   
   
     #else     #else
  
         /** Traces the given message         /** Traces the given message
Line 131 
Line 149 
             va_end(argList);             va_end(argList);
         }         }
  
           /** Set the trace file to the given file
               @param    traceFile       full path of the trace file
               @return   0               if the filepath is valid
                         1               if an error occurs while opening the file
                                         in append mode
           */
           static Uint32 setTraceFile(const char* traceFile);
   
           /** Set the trace level to the given level
               @param    traceLevel      trace level to be set
               @return   0               if trace level is valid
                         1               if trace level is invalid
           */
           static Uint32 setTraceLevel(const Uint32 traceLevel);
   
           /** Set components to be traced
               @param    traceComponents list of components to be traced,
                         components should be separated by ','
           */
           static void setTraceComponents(String traceComponents);
   
     #endif     #endif
  
     // End of PEGASUS_REMOVE_TRACE     // End of PEGASUS_REMOVE_TRACE
Line 167 
Line 206 
             _FUNC_EXIT_MSG, methodName);             _FUNC_EXIT_MSG, methodName);
     }     }
  
     /** Set the trace file to the given file      /** Validates the File Path for the trace File
         @param    traceFile       full path of the trace file          @param    filePath full path of the file
         @return   0               if the filepath is valid          @return   1        if the file path is valid
                   1               if an error occurs while opening the file in                    0        if the file path is invalid
                                   append mode  
      */      */
     static Uint32 setTraceFile(const char* traceFile);      static Boolean isValid(const char* filePath);
  
     /** Set the trace level to the given level  
         @param    traceLevel      trace level to be set  
         @return   0               if trace level is valid  
                   1               if trace level is invalid  
      */  
     static Uint32 setTraceLevel(const Uint32 traceLevel);  
  
    /** Set components to be traced  
        @param    traceComponents list of components to be traced, components  
                  should be separated by ','  
     */  
     static void setTraceComponents(String traceComponents);  
  
 private: private:
  
     static const char   _COMPONENT_SEPARATOR;     static const char   _COMPONENT_SEPARATOR;
     static const Uint32 _NUM_COMPONENTS;     static const Uint32 _NUM_COMPONENTS;
       static const Uint32 _STRLEN_MAX_UNSIGNED_INT;
     Boolean*            _traceComponentMask;     Boolean*            _traceComponentMask;
     Uint32              _traceLevelMask;     Uint32              _traceLevelMask;
     TraceFileHandler*   _traceHandler;     TraceFileHandler*   _traceHandler;
Line 312 
Line 340 
 #endif #endif
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
   
 #endif /* Pegasus_Tracer_h */ #endif /* Pegasus_Tracer_h */


Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2