equal
deleted
inserted
replaced
28 #ifndef SIPCRLOGS_H |
28 #ifndef SIPCRLOGS_H |
29 #define SIPCRLOGS_H |
29 #define SIPCRLOGS_H |
30 |
30 |
31 #include <e32std.h> |
31 #include <e32std.h> |
32 |
32 |
33 #ifdef _DEBUG |
33 #ifdef _DEBUG |
34 // Comment the following line to turn off all kind of logging: |
34 #include "OstTraceDefinitions.h" |
35 #define USE_SIP_CR_LOGS |
35 #ifdef OST_TRACE_COMPILER_IN_USE |
|
36 #include "SIPCRLogsTraces.h" |
|
37 #define USE_SIP_CR_LOGS |
|
38 #endif |
36 #endif |
39 #endif |
37 |
40 |
38 |
41 |
39 #ifdef USE_SIP_CR_LOGS |
42 #ifdef USE_SIP_CR_LOGS |
40 |
43 |
47 inline static void Print(const TDesC16& aStr1, |
50 inline static void Print(const TDesC16& aStr1, |
48 const TDesC8& aStr2); |
51 const TDesC8& aStr2); |
49 |
52 |
50 inline static void Print(const TDesC16& aStr, |
53 inline static void Print(const TDesC16& aStr, |
51 TInt aValue); |
54 TInt aValue); |
52 private: |
55 |
53 inline static TBool LogDirExists( const TDesC& aPath ); |
|
54 |
|
55 inline static void WriteToFile( const TDesC& aStr ); |
|
56 }; |
56 }; |
57 |
57 |
58 #include "SIPCRLogs.inl" |
58 #include "SIPCRLogs.inl" |
59 |
59 |
60 #define SIP_CR_LOG( a ) SIPCRLog::Print( _L( a ) ); |
60 #define SIP_CR_LOG( a ) SIPCRLog::Print( _L( a ) ); |