64
|
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 "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: Configuration header file for tracing utilities in commonemail
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef EMAILTRACECONFIG_HRH
|
|
20 |
#define EMAILTRACECONFIG_HRH
|
|
21 |
|
|
22 |
#ifndef __WINS__
|
|
23 |
#ifdef _DEBUG
|
|
24 |
#define ENABLE_TRACES
|
|
25 |
#endif // _DEBUG
|
|
26 |
#endif // __WINS__
|
|
27 |
|
|
28 |
#ifdef ENABLE_TRACES
|
|
29 |
/**
|
|
30 |
* Trace definitions
|
|
31 |
*/
|
|
32 |
// Error trace enabled
|
|
33 |
#define ERROR_TRACE
|
|
34 |
|
|
35 |
// Info trace enabled
|
|
36 |
#define INFO_TRACE
|
|
37 |
|
|
38 |
// Function trace enabled
|
|
39 |
#define FUNC_TRACE
|
|
40 |
|
|
41 |
// Tracing into file enabled, default RDebug
|
|
42 |
#undef TRACE_INTO_FILE
|
|
43 |
|
|
44 |
// Tracing into c:/cmail_<thread-name>.txt. File replaced when predefined
|
|
45 |
// line count is reached
|
|
46 |
#undef TRACE_FILE_LIMIT_SIZE
|
|
47 |
|
|
48 |
#endif // ENABLE_TRACES
|
|
49 |
|
|
50 |
#ifdef __ENABLE_TIMESTAMP_TRACES
|
|
51 |
#ifndef _DEBUG
|
|
52 |
// Undefine error traces
|
|
53 |
#undef ERROR_TRACE
|
|
54 |
// Undefine info traces
|
|
55 |
#undef INFO_TRACE
|
|
56 |
// Undefine function traces
|
|
57 |
#undef FUNC_TRACE
|
|
58 |
// Trace to file
|
|
59 |
#define TRACE_INTO_FILE
|
|
60 |
// Timestamp trace enabled
|
|
61 |
#define TIMESTAMP_TRAC
|
|
62 |
#endif // _DEBUG
|
|
63 |
#endif //ENABLE_TIMESTAMP_TRACES
|
|
64 |
|
|
65 |
|
|
66 |
#endif // EMAILTRACECONFIG_HRH
|