|
1 /* |
|
2 * Copyright (c) 2002-2004 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: This file defines logging macros for SW Installer UIs. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SWINSTDEBUG_H |
|
20 #define SWINSTDEBUG_H |
|
21 |
|
22 |
|
23 #ifdef _DEBUG |
|
24 |
|
25 #include <e32std.h> |
|
26 |
|
27 #define FLOG(a) { FPrint(a); } |
|
28 #define FLOG_1(a,b) { FPrint(a,b); } |
|
29 #define FLOG_2(a,b,c) { FPrint(a,b,c); } |
|
30 #define FLOG_3(a,b,c,d) { FPrint(a,b,c,d); } |
|
31 |
|
32 #include <flogger.h> |
|
33 |
|
34 _LIT(KLogFile,"SWInst.txt"); |
|
35 _LIT(KLogDir,"SWInst"); |
|
36 |
|
37 inline void FPrint( const TRefByValue<const TDesC> aFmt, ... ) |
|
38 { |
|
39 VA_LIST list; |
|
40 VA_START( list, aFmt ); |
|
41 RFileLogger::WriteFormat( KLogDir, KLogFile, EFileLoggingModeAppend, aFmt, list ); |
|
42 } |
|
43 |
|
44 // =========================================================================== |
|
45 #else // // No loggings |
|
46 // =========================================================================== |
|
47 #define FLOG(a) |
|
48 #define FLOG_1(a,b) |
|
49 #define FLOG_2(a,b,c) |
|
50 #define FLOG_3(a,b,c,d) |
|
51 |
|
52 #endif // _DEBUG |
|
53 |
|
54 #endif // SWINSTDEBUG_H |
|
55 |
|
56 // End of File |