|
1 /* |
|
2 * Copyright (c) 2004-2006 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: mmsdebuglogging declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __MMSDEBUGLOGGING_H |
|
21 #define __MMSDEBUGLOGGING_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <flogger.h> |
|
25 |
|
26 // USERINCLUDE FILES |
|
27 // CONSTANTS |
|
28 // MACROS |
|
29 #ifdef _DEBUG |
|
30 _LIT( KMmsEngineLogFile,"settings.txt"); |
|
31 _LIT( KMmsEngineLogFolder,"mmssettings"); |
|
32 #define LOG(AAA) RFileLogger::Write(KMmsEngineLogFolder(),KMmsEngineLogFile(),EFileLoggingModeAppend,AAA) |
|
33 #define LOG2(AAA,BBB) RFileLogger::WriteFormat(KMmsEngineLogFolder(),KMmsEngineLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB) |
|
34 #define LOG3(AAA,BBB,ZZZ) RFileLogger::WriteFormat(KMmsEngineLogFolder(),KMmsEngineLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB,ZZZ) |
|
35 #else // no _DEBUG defined |
|
36 #define LOG(AAA) |
|
37 #define LOG2(AAA,BBB) |
|
38 #define LOG3(AAA,BBB,ZZZ) |
|
39 #endif // _DEBUG |
|
40 |
|
41 // DATA TYPES |
|
42 // FUNCTION PROTOTYPES |
|
43 // FORWARD DECLARATIONS |
|
44 // CLASS DECLARATION |
|
45 |
|
46 #endif // __MMSDEBUGLOGGING_H |
|
47 |
|
48 // End of File |