|
1 /* |
|
2 * Copyright (c) 2009 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: DCMO framework debug purpose |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef DEBUG_DCMO_HEADER |
|
19 #define DEBUG_DCMO_HEADER |
|
20 |
|
21 // INCLUDES |
|
22 |
|
23 #include <f32file.h> |
|
24 #include <flogger.h> |
|
25 |
|
26 // CONSTANTS |
|
27 _LIT( KDcmoLogFolderName, "dcmo" ); |
|
28 _LIT( KDcmoLogFileName, "dcmo.log" ); |
|
29 // MACROS |
|
30 #ifdef _DEBUG |
|
31 #define _DCMO_FILE_DEBUG |
|
32 #endif |
|
33 |
|
34 #ifdef _DCMO_FILE_DEBUG |
|
35 #define RDEBUG(X) RFileLogger::Write( KDcmoLogFolderName, KDcmoLogFileName, EFileLoggingModeAppend, _L(X) ) |
|
36 #define RDEBUG_2(X,Y) RFileLogger::WriteFormat( KDcmoLogFolderName, KDcmoLogFileName, EFileLoggingModeAppend, _L(X),Y ) |
|
37 #define RDEBUG_3(X,Y,Z) RFileLogger::WriteFormat( KDcmoLogFolderName, KDcmoLogFileName, EFileLoggingModeAppend, _L(X),Y,Z ) |
|
38 #else |
|
39 |
|
40 #ifdef _DEBUG |
|
41 #define RDEBUG(X) RDebug::Print(_L(X)) |
|
42 #define RDEBUG_2(X,Y) RDebug::Print(_L(X),Y) |
|
43 #define RDEBUG_3(X,Y,Z) RDebug::Print(_L(X),Y,Z) |
|
44 #else |
|
45 #define RDEBUG(X) |
|
46 #define RDEBUG_2(X,Y) |
|
47 #define RDEBUG_3(X,Y,Z) |
|
48 #endif // _DEBUG |
|
49 |
|
50 #endif // _DCMO_FILE_DEBUG |
|
51 |
|
52 #endif // DEBUG_HEADER_ |
|
53 |