realtimenetprots/sipfw/ProfileAgent/Profile/Inc/SipProfileLog.h
changeset 55 36ea1f90a3d8
parent 0 307788aac0a8
equal deleted inserted replaced
54:e4420734a2a0 55:36ea1f90a3d8
    31 #define SIPPROFILELOG_H
    31 #define SIPPROFILELOG_H
    32 
    32 
    33 #include <e32std.h>    
    33 #include <e32std.h>    
    34 
    34 
    35 #ifdef _DEBUG
    35 #ifdef _DEBUG
    36     // RFileLogger has been redefined in Commsdebugutility.H
    36 #include "OstTraceDefinitions.h"
    37     // This is a bug in Symbian 9.5.
    37 #ifdef OST_TRACE_COMPILER_IN_USE
    38     // Using __FLOG_ACTIVE from Commsdebugutility.H to avoid build break
    38 #include "SipProfileLogTraces.h"
    39    #if !defined(CPPUNIT_TEST)
    39 #define USE_SIP_PROFILE_LOGS
    40         // Comment the following line to turn off all kind of logging:
    40 #endif
    41         #define USE_SIP_PROFILE_LOGS
       
    42     #endif
       
    43  
       
    44 #endif
    41 #endif
    45 
    42 
    46 
    43 
    47 #ifdef USE_SIP_PROFILE_LOGS
    44 #ifdef USE_SIP_PROFILE_LOGS
    48 // CLASS DECLARATION
    45 // CLASS DECLARATION
    67 			inline static void Print(const TDesC16& aStr, TUint32 aValue1, 
    64 			inline static void Print(const TDesC16& aStr, TUint32 aValue1, 
    68 				TUint32 aValue2, TUint32 aValue3);
    65 				TUint32 aValue2, TUint32 aValue3);
    69 
    66 
    70 			inline static void Print(const TDesC16& aStr1,
    67 			inline static void Print(const TDesC16& aStr1,
    71 				const TDesC8& aStr2);
    68 				const TDesC8& aStr2);
    72 			private:
       
    73 			inline static TBool LogDirExists( const TDesC& aPath );
       
    74 
    69 
    75 			inline static void WriteToFile( const TDesC& aStr );
       
    76 	
       
    77 			inline static void WriteLog( const TDesC& aStr );
       
    78 	    };
    70 	    };
    79 
    71 
    80 	#include "SipProfileLog.inl"
    72 	#include "SipProfileLog.inl"
    81 
    73 
    82 	/**
    74 	/**