1 /* |
|
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: VoIP XML processor logger |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VOIPXMLPROCESSORLOGGER_H |
|
21 #define VOIPXMLPROCESSORLOGGER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32def.h> |
|
25 #include <e32debug.h> |
|
26 |
|
27 //---------------------------------------------------------------------------- |
|
28 // USER LOGGING SETTINGS |
|
29 //---------------------------------------------------------------------------- |
|
30 |
|
31 #ifndef _DEBUG |
|
32 |
|
33 /*************************** |
|
34 * Logging method variants: |
|
35 * 0 = No logging |
|
36 * 1 = RDebug |
|
37 ***************************/ |
|
38 |
|
39 #define VOIPXMLPROCESSOR_DEBUG 0 // UREL BUILD |
|
40 |
|
41 #else |
|
42 |
|
43 #define VOIPXMLPROCESSOR_DEBUG 1 // UDEB BUILD |
|
44 |
|
45 #endif // _DEBUG |
|
46 |
|
47 //---------------------------------------------------------------------------- |
|
48 // LOGGING MACROs (DO NOT EDIT) |
|
49 // |
|
50 // USE THESE MACROS IN YOUR CODE |
|
51 //---------------------------------------------------------------------------- |
|
52 |
|
53 #if VOIPXMLPROCESSOR_DEBUG == 1 // RDebug |
|
54 |
|
55 #define DBG_PRINT( AA ) { RDebug::Print( _L( AA ) ); } |
|
56 #define DBG_PRINT2( AA, BB ) { RDebug::Print( _L( AA ), BB ); } |
|
57 #define DBG_PRINT3( AA, BB, CC ) { RDebug::Print( _L( AA ), BB, CC ); } |
|
58 |
|
59 #else // VOIPXMLPROCESSOR_DEBUG == 0 or invalid -> Disable loggings |
|
60 |
|
61 #define DBG_PRINT( AA ) |
|
62 #define DBG_PRINT2( AA, BB ) |
|
63 #define DBG_PRINT3( AA, BB, CC ) |
|
64 |
|
65 #endif // IAS_DEBUG |
|
66 |
|
67 #endif // VOIPXMLPROCESSORLOGGER_H |
|