13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #if 0 |
18 #if defined (_DEBUG) |
19 #ifndef DEBUG_H_ |
|
20 #define DEBUG_H_ |
|
21 |
19 |
22 #define DL_TRACE( x ) RDebug::Printf( "%s %s (%u) %s", __FILE__, __PRETTY_FUNCTION__, __LINE__, x ); |
20 _LIT( KLogFile, "Devicelockplugin.log" ); |
23 #define DL_TRACE_NUM( x, y ) RDebug::Printf( "%s %s (%u) %s=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, x, y ); |
21 _LIT( KLogDir, "Devicelockplugin" ); |
24 |
|
25 |
|
26 #endif /* DEBUG_H_ */ |
|
27 #endif |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 #ifndef SCPDEBUG_H |
|
34 #define SCPDEBUG_H |
|
35 |
|
36 _LIT( KLogFile, "SCP.log" ); |
|
37 _LIT( KLogDir, "tarm" ); |
|
38 |
|
39 |
|
40 |
22 |
41 #include <e32std.h> |
23 #include <e32std.h> |
42 #include <f32file.h> |
24 #include <f32file.h> |
43 #include <flogger.h> |
25 #include <flogger.h> |
44 #include <e32svr.h> |
26 #include <e32svr.h> |
45 |
27 |
46 inline void FWrite (TRefByValue<const TDesC> aFmt,...) |
28 inline void FWrite (TRefByValue<const TDesC> aFmt,...) |
47 { |
29 { |
48 VA_LIST list; |
30 VA_LIST list; |
49 VA_START( list, aFmt ); |
31 VA_START( list, aFmt ); |
50 RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list ); |
32 RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list ); |
51 } |
33 } |
52 |
34 |
53 #define Dprint(arg...) FWrite arg; |
35 #define Dprint(arg...) FWrite arg; |
54 #else |
36 #else |
55 #define Dprint(arg...) |
37 #define Dprint(arg...) |
56 #endif // _DEBUG |
38 #endif // _DEBUG |
57 |
|
58 |
39 |
|
40 |