|
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 CSCSETTINGSUILOGGER_H |
|
20 #define CSCSETTINGSUILOGGER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 #include <e32debug.h> |
|
24 |
|
25 |
|
26 //---------------------------------------------------------------------------- |
|
27 // USER LOGGING SETTINGS |
|
28 //---------------------------------------------------------------------------- |
|
29 |
|
30 #ifndef _DEBUG |
|
31 |
|
32 /*************************** |
|
33 * Logging method variants: |
|
34 * 0 = No logging |
|
35 * 1 = RDebug |
|
36 ***************************/ |
|
37 |
|
38 #define CSCSETUI_DEBUG 0 // UREL BUILD |
|
39 |
|
40 #else |
|
41 |
|
42 #define CSCSETUI_DEBUG 1 // UDEB BUILD |
|
43 |
|
44 #endif // _DEBUG |
|
45 |
|
46 |
|
47 |
|
48 //---------------------------------------------------------------------------- |
|
49 // LOGGING MACROs (DO NOT EDIT) |
|
50 // |
|
51 // USE THESE MACROS IN YOUR CODE |
|
52 //---------------------------------------------------------------------------- |
|
53 |
|
54 #if CSCSETUI_DEBUG == 1 // RDebug |
|
55 |
|
56 #define CSCSETUIDEBUG(AA) { RDebug::Print(_L(AA)); } |
|
57 #define CSCSETUIDEBUG2(AA,BB) { RDebug::Print(_L(AA),BB); } |
|
58 #define CSCSETUIDEBUG3(AA,BB,CC) { RDebug::Print(_L(AA),BB,CC); } |
|
59 #define CSCSETUIDEBUG4(AA,BB,CC,DD) { RDebug::Print(_L(AA),BB,CC,DD); } |
|
60 |
|
61 #else // CSCSETUI_DEBUG == 0 or invalid -> Disable loggings |
|
62 |
|
63 #define CSCSETUIDEBUG(AA) |
|
64 #define CSCSETUIDEBUG2(AA,BB) |
|
65 #define CSCSETUIDEBUG3(AA,BB,CC) |
|
66 #define CSCSETUIDEBUG4(AA,BB,CC,DD) |
|
67 |
|
68 #endif // CSCSETUI_DEBUG |
|
69 |
|
70 #endif // CSCSETTINGSUILOGGER_H |