|
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 the License "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __LIVETVLOGGER_H__ |
|
20 #define __LIVETVLOGGER_H__ |
|
21 |
|
22 //#include <e32std.h> |
|
23 #include <e32debug.h> |
|
24 #include <flogger.h> |
|
25 |
|
26 _LIT( KDirectory, "livetv" ); |
|
27 _LIT( KFileName, "livetv2.log" ); |
|
28 |
|
29 //#define LIVE_TV_RDEBUG_TRACE |
|
30 #ifdef _DEBUG |
|
31 #define LIVE_TV_FILE_TRACE |
|
32 #endif |
|
33 #ifdef LIVE_TV_RDEBUG_TRACE |
|
34 #define LIVE_TV_TRACE1(a) RDebug::Print(a) |
|
35 #define LIVE_TV_TRACE2(a,b) RDebug::Print(a,b) |
|
36 #define LIVE_TV_TRACE3(a,b,c) RDebug::Print(a,b,c) |
|
37 #define LIVE_TV_TRACE4(a,b,c,d) RDebug::Print(a,b,c,d) |
|
38 #define LIVE_TV_TRACE5(a,b,c,d,e) RDebug::Print(a,b,c,d,e) |
|
39 #else |
|
40 #ifdef LIVE_TV_FILE_TRACE |
|
41 #define LIVE_TV_TRACE1(a) { RFileLogger::Write( KDirectory, KFileName, EFileLoggingModeAppend, a ); } |
|
42 #define LIVE_TV_TRACE2(a,b) { RFileLogger::WriteFormat( KDirectory, KFileName, EFileLoggingModeAppend, a, b );} |
|
43 #define LIVE_TV_TRACE3(a,b,c) { RFileLogger::WriteFormat( KDirectory, KFileName, EFileLoggingModeAppend, a, b, c ); } |
|
44 #define LIVE_TV_TRACE4(a,b,c,d) { RFileLogger::WriteFormat( KDirectory, KFileName, EFileLoggingModeAppend, a, b, c, d ); } |
|
45 #define LIVE_TV_TRACE5(a,b,c,d,e) { RFileLogger::WriteFormat( KDirectory, KFileName, EFileLoggingModeAppend, a, b, c, d, e ); } |
|
46 #else |
|
47 #define LIVE_TV_TRACE1(a) |
|
48 #define LIVE_TV_TRACE2(a,b) |
|
49 #define LIVE_TV_TRACE3(a,b,c) |
|
50 #define LIVE_TV_TRACE4(a,b,c,d) |
|
51 #define LIVE_TV_TRACE5(a,b,c,d,e) |
|
52 #endif |
|
53 #endif |
|
54 |
|
55 #endif// __LIVETVLOGGER_H__ |
|
56 |
|
57 // End of file |