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