|
1 /* |
|
2 * Copyright (c) 2008 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: Tracing flags configuration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TRACECONFIGURATION_HRH |
|
20 #define TRACECONFIGURATION_HRH |
|
21 |
|
22 //----------------------------------------------------------------------------- |
|
23 // Trace definitions |
|
24 //----------------------------------------------------------------------------- |
|
25 // |
|
26 |
|
27 /** |
|
28 * Error trace enabled |
|
29 */ |
|
30 #ifdef _DEBUG |
|
31 #define ERROR_TRACE |
|
32 #else |
|
33 #undef ERROR_TRACE |
|
34 #endif |
|
35 |
|
36 /** |
|
37 * Info trace enabled |
|
38 */ |
|
39 #if defined _DEBUG && defined __MEDIA_KEYS_INFO_TRACE__ |
|
40 #define INFO_TRACE |
|
41 #define TIMESTAMP_TRACE |
|
42 #else |
|
43 #undef INFO_TRACE |
|
44 #undef TIMESTAMP_TRACE |
|
45 #endif |
|
46 |
|
47 /** |
|
48 * Function trace enabled |
|
49 */ |
|
50 #if defined _DEBUG && defined __MEDIA_KEYS_FUNC_TRACE__ |
|
51 #define FUNC_TRACE |
|
52 #else |
|
53 #undef FUNC_TRACE |
|
54 #endif |
|
55 |
|
56 /** |
|
57 * Timestamp tracing on |
|
58 */ |
|
59 #if defined _DEBUG && defined __MEDIA_KEYS_TIMESTAMP_TRACE__ |
|
60 #define TIMESTAMP_TRACE |
|
61 #else |
|
62 #undef TIMESTAMP_TRACE |
|
63 #endif |
|
64 |
|
65 /** |
|
66 * Tracing current client process and thread |
|
67 */ |
|
68 #ifdef _DEBUG |
|
69 #define CLIENT_TRACE |
|
70 #else |
|
71 #undef CLIENT_TRACE |
|
72 #endif |
|
73 |
|
74 /** |
|
75 * Tracing into file enabled, default RDebug |
|
76 */ |
|
77 #ifdef __MEDIA_KEYS_TRACE_INTO_FILE__ |
|
78 #define TRACE_INTO_FILE |
|
79 #else |
|
80 #undef TRACE_INTO_FILE |
|
81 #endif |
|
82 |
|
83 #endif |