|
1 /* |
|
2 * Copyright (c) 2007-2007 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: Provides macros for logging |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _ACCOUNTCREATIONPLUGINLOGGER_H |
|
20 #define _ACCOUNTCREATIONPLUGINLOGGER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 #include <e32debug.h> |
|
24 |
|
25 //---------------------------------------------------------------------------- |
|
26 // USER LOGGING SETTINGS |
|
27 //---------------------------------------------------------------------------- |
|
28 |
|
29 #ifndef _DEBUG |
|
30 |
|
31 /*************************** |
|
32 * Logging method variants: |
|
33 * 0 = No logging |
|
34 * 1 = RDebug |
|
35 ***************************/ |
|
36 |
|
37 #define ACP_DEBUG 0 // UREL BUILD |
|
38 |
|
39 #else |
|
40 |
|
41 #define ACP_DEBUG 1 // UDEB BUILD |
|
42 |
|
43 #endif // _DEBUG |
|
44 |
|
45 //---------------------------------------------------------------------------- |
|
46 // LOGGING MACROs (DO NOT EDIT) |
|
47 // |
|
48 // USE THESE MACROS IN YOUR CODE |
|
49 //---------------------------------------------------------------------------- |
|
50 |
|
51 #if ACP_DEBUG == 1 // RDebug |
|
52 |
|
53 #define ACPLOG(AA) { RDebug::Print(_L(AA)); } |
|
54 #define ACPLOG2(AA,BB) { RDebug::Print(_L(AA),BB); } |
|
55 #define ACPLOG3(AA,BB,CC) { RDebug::Print(_L(AA),BB,CC); } |
|
56 #define ACPLOG4(AA,BB,CC,DD) { RDebug::Print(_L(AA),BB,CC,DD); } |
|
57 |
|
58 #else // ACP_DEBUG == 0 or invalid -> Disable loggings |
|
59 |
|
60 #define ACPLOG(AA) |
|
61 #define ACPLOG2(AA,BB) |
|
62 #define ACPLOG3(AA,BB,CC) |
|
63 #define ACPLOG4(AA,BB,CC,DD) |
|
64 |
|
65 #endif // ACP_DEBUG |
|
66 |
|
67 #endif // ACCOUNTCREATIONPLUGINLOGGER_H |
|
68 |
|
69 // End of file. |