|
1 /* |
|
2 * Copyright (c) 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: Debug log macro definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef DRMLOG_H |
|
21 #define DRMLOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #if (defined _DEBUG || defined _LOGGING) |
|
25 #include <E32SVR.H> |
|
26 #include <flogger.h> |
|
27 |
|
28 // CONSTANTS |
|
29 // MACROS |
|
30 |
|
31 #ifndef DRMFLOGFILE |
|
32 #define DRMFLOGFILE _L("RightsServer.log") |
|
33 #endif |
|
34 |
|
35 #define DRMLOG( a ) \ |
|
36 RFileLogger::Write(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a); \ |
|
37 RDebug::Print( a ); |
|
38 |
|
39 #define DRMLOG2( a, b ) \ |
|
40 RFileLogger::WriteFormat(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a, b); \ |
|
41 RDebug::Print( a, b ); |
|
42 |
|
43 #define DRMLOGHEX( a ) \ |
|
44 RFileLogger::HexDump(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, _S(""), _S(""), (a).Ptr(), (a).Size()); |
|
45 |
|
46 #else |
|
47 |
|
48 #define DRMLOG( a ) |
|
49 #define DRMLOG2( a, b ) |
|
50 #define DRMLOGHEX( a ) |
|
51 |
|
52 #endif // _DEBUG |
|
53 |
|
54 // DATA TYPES |
|
55 // FUNCTION PROTOTYPES |
|
56 // FORWARD DECLARATIONS |
|
57 // CLASS DECLARATION |
|
58 |
|
59 #endif // DRMLOG_H |
|
60 |
|
61 // End of File |
|
62 |
|
63 |