equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Logger headerfile for CbsServer |
14 * Description: Logger headerfile for CbsServer |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 |
|
19 |
18 #ifndef CBSLOGGER_H |
20 #ifndef CBSLOGGER_H |
19 #define CBSLOGGER_H |
21 #define CBSLOGGER_H |
20 |
22 |
21 /* |
23 /* |
22 ----------------------------------------------------------------------------- |
24 ----------------------------------------------------------------------------- |
26 #ifndef _DEBUG |
28 #ifndef _DEBUG |
27 // UREL BUILD: |
29 // UREL BUILD: |
28 #define CBS_LOGGING_METHOD 0 // No logging in UREL builds |
30 #define CBS_LOGGING_METHOD 0 // No logging in UREL builds |
29 #else |
31 #else |
30 // UDEB BUILD: |
32 // UDEB BUILD: |
31 #define CBS_LOGGING_METHOD 2 // 0 = No logging, |
33 #define CBS_LOGGING_METHOD 1 // 0 = No logging, |
32 // 1 = Flogger, |
34 // 1 = Flogger, |
33 // 2 = RDebug |
35 // 2 = RDebug |
34 #endif //_DEBUG |
36 #endif //_DEBUG |
|
37 |
35 |
38 |
36 #if CBS_LOGGING_METHOD > 0 |
39 #if CBS_LOGGING_METHOD > 0 |
37 #define CBS_LOGGING_ENABLED // This is for backward compatibility |
40 #define CBS_LOGGING_ENABLED // This is for backward compatibility |
38 #endif //CBS_LOGGING_METHOD |
41 #endif //CBS_LOGGING_METHOD |
39 |
42 |
53 |
56 |
54 #include <e32svr.h> |
57 #include <e32svr.h> |
55 |
58 |
56 #endif //CBS_LOGGING_METHOD |
59 #endif //CBS_LOGGING_METHOD |
57 |
60 |
|
61 |
58 /* |
62 /* |
59 ----------------------------------------------------------------------------- |
63 ----------------------------------------------------------------------------- |
60 LOGGING MACROs |
64 LOGGING MACROs |
61 |
65 |
62 USE THESE MACROS IN YOUR CODE ! |
66 USE THESE MACROS IN YOUR CODE ! |
63 ----------------------------------------------------------------------------- |
67 ----------------------------------------------------------------------------- |
64 */ |
68 */ |
|
69 |
65 |
70 |
66 #if CBS_LOGGING_METHOD == 1 // Flogger |
71 #if CBS_LOGGING_METHOD == 1 // Flogger |
67 |
72 |
68 #define CBSLOGTEXT(AAA) /*lint -save -e960 */ { RFileLogger::Write(KCbsLogFolder(),KCbsLogFile(),EFileLoggingModeAppend,AAA); } /*lint -restore */ |
73 #define CBSLOGTEXT(AAA) /*lint -save -e960 */ { RFileLogger::Write(KCbsLogFolder(),KCbsLogFile(),EFileLoggingModeAppend,AAA); } /*lint -restore */ |
69 #define CBSLOGSTRING(AAA) /*lint -save -e960 */ { _LIT(tempLogDes,AAA); RFileLogger::Write(KCbsLogFolder(),KCbsLogFile(),EFileLoggingModeAppend,tempLogDes()); } /*lint -restore */ |
74 #define CBSLOGSTRING(AAA) /*lint -save -e960 */ { _LIT(tempLogDes,AAA); RFileLogger::Write(KCbsLogFolder(),KCbsLogFile(),EFileLoggingModeAppend,tempLogDes()); } /*lint -restore */ |