28 |
28 |
29 #ifndef SIPLOGS_H |
29 #ifndef SIPLOGS_H |
30 #define SIPLOGS_H |
30 #define SIPLOGS_H |
31 |
31 |
32 #include <e32std.h> |
32 #include <e32std.h> |
|
33 #include <in_sock.h> |
33 |
34 |
34 #ifdef _DEBUG |
35 #ifdef _DEBUG |
35 // Comment the following line to turn off all kind of logging: |
36 #include "OstTraceDefinitions.h" |
36 #define USE_SIP_LOGS |
37 #ifdef OST_TRACE_COMPILER_IN_USE |
37 |
38 #include "TSIPLoggerTraces.h" |
38 // Comment the following line to switch from RFileLogger to RDebug logging: |
39 // Comment the following line to turn off all kind of logging: |
39 #define USE_SIP_FILE_LOGS |
40 #define USE_SIP_LOGS |
40 |
41 // Comment the following line to switch off SIP message logging |
41 // Comment the following line to switch off SIP message logging |
42 #define USE_SIP_MESSAGE_LOG |
42 #define USE_SIP_MESSAGE_LOG |
43 #endif |
43 #endif |
44 #endif |
44 |
45 |
45 |
46 |
46 #ifdef USE_SIP_LOGS |
47 #ifdef USE_SIP_LOGS |
47 |
48 |
48 #include "TSIPLogger.h" |
49 #include "TSIPLogger.h" |
49 |
50 |
50 #define __SIP_LOG(aStr)\ |
51 #define __SIP_LOG(aStr)\ |
51 TSIPLogger::Print(_L(aStr)); |
52 TSIPLogger::Print(_L(aStr)); |
52 |
53 |
|
54 #define __SIP_TXT8_LOG(aStr)\ |
|
55 TSIPLogger::Print(aStr); |
|
56 |
53 #define __SIP_DES8_LOG(aStr,aMsg)\ |
57 #define __SIP_DES8_LOG(aStr,aMsg)\ |
54 TSIPLogger::Print(_L(aStr), aMsg); |
58 TSIPLogger::Print(_L(aStr), aMsg); |
55 |
59 |
56 #define __SIP_DES16_LOG(aStr,aMsg)\ |
60 #define __SIP_DES16_LOG(aStr,aMsg)\ |
57 TSIPLogger::Print(_L(aStr), aMsg); |
61 TSIPLogger::Print(_L(aStr), aMsg); |
74 #endif // USE_SIP_MESSAGE_LOG |
78 #endif // USE_SIP_MESSAGE_LOG |
75 |
79 |
76 #else // _USE_SIP_LOGS |
80 #else // _USE_SIP_LOGS |
77 |
81 |
78 #define __SIP_LOG(aStr) |
82 #define __SIP_LOG(aStr) |
|
83 #define __SIP_TXT8_LOG(aStr) |
79 #define __SIP_DES8_LOG(aStr,aMsg) |
84 #define __SIP_DES8_LOG(aStr,aMsg) |
80 #define __SIP_DES16_LOG(aStr,aMsg) |
85 #define __SIP_DES16_LOG(aStr,aMsg) |
81 #define __SIP_INT_LOG1(aStr,aValue) |
86 #define __SIP_INT_LOG1(aStr,aValue) |
82 #define __SIP_INT_LOG2(aStr,aValue1,aValue2) |
87 #define __SIP_INT_LOG2(aStr,aValue1,aValue2) |
83 #define __SIP_ADDR_LOG(aStr,aAddr) |
88 #define __SIP_ADDR_LOG(aStr,aAddr) |