|
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: mmswatcherdebuglogging declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __MMSWATCHERDEBUGLOGGING_H |
|
21 #define __MMSWATCHERDEBUGLOGGING_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <flogger.h> |
|
25 #include "mmsservercommon.h" // this has _NO_MMSS_LOGGING_ handlinga and debug overrides |
|
26 |
|
27 // MACROS |
|
28 #ifndef _NO_MMSS_LOGGING_ |
|
29 _LIT( KMmsWatcherLogFile,"mmswatcher.txt"); |
|
30 _LIT( KMmsWatcherLogFolder,"mmswatcher"); |
|
31 #define LOG(AAA) RFileLogger::Write(KMmsWatcherLogFolder(),KMmsWatcherLogFile(),EFileLoggingModeAppend,AAA) |
|
32 #define LOG2(AAA,BBB) RFileLogger::WriteFormat(KMmsWatcherLogFolder(),KMmsWatcherLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB) |
|
33 #define LOG3(AAA,BBB,ZZZ) RFileLogger::WriteFormat(KMmsWatcherLogFolder(),KMmsWatcherLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB,ZZZ) |
|
34 #define LOG7(AAA,BBB,ZZZ,DDD,EEE,FFF,GGG) RFileLogger::WriteFormat(KMmsWatcherLogFolder(),KMmsWatcherLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB,ZZZ,DDD,EEE,FFF,GGG) |
|
35 #else // i.e. _NO_MMSS_LOGGING_ defined |
|
36 #define LOG(AAA) |
|
37 #define LOG2(AAA,BBB) |
|
38 #define LOG3(AAA,BBB,ZZZ) |
|
39 #define LOG7(AAA,BBB,ZZZ,DDD,EEE,FFF,GGG) |
|
40 #endif // _NO_MMSS_LOGGING_ |
|
41 |
|
42 #endif // __MMSWATCHERDEBUGLOGGING_H |
|
43 |
|
44 // End of File |