sl@0
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef CENTREP_LOG_H
|
sl@0
|
17 |
#define CENTREP_LOG_H
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <e32debug.h>
|
sl@0
|
20 |
|
sl@0
|
21 |
//
|
sl@0
|
22 |
// MACROs for trace statements in client/server code.
|
sl@0
|
23 |
//
|
sl@0
|
24 |
|
sl@0
|
25 |
#ifdef CENTREP_TRACE
|
sl@0
|
26 |
|
sl@0
|
27 |
#define __CENTREP_TRACE(_text) RDebug::Print(_L(_text))
|
sl@0
|
28 |
#define __CENTREP_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1))
|
sl@0
|
29 |
#define __CENTREP_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2))
|
sl@0
|
30 |
#define __CENTREP_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3))
|
sl@0
|
31 |
|
sl@0
|
32 |
#else
|
sl@0
|
33 |
|
sl@0
|
34 |
#define __CENTREP_TRACE(_text)
|
sl@0
|
35 |
#define __CENTREP_TRACE1(_text, _a1)
|
sl@0
|
36 |
#define __CENTREP_TRACE2(_text, _a1, _a2)
|
sl@0
|
37 |
#define __CENTREP_TRACE3(_text, _a1, _a2, _a3)
|
sl@0
|
38 |
|
sl@0
|
39 |
#endif
|
sl@0
|
40 |
|
sl@0
|
41 |
// macro for trace statements of just the server subsession
|
sl@0
|
42 |
// note: this is needed for greater granularity than the centrep_trace macro
|
sl@0
|
43 |
// offers
|
sl@0
|
44 |
|
sl@0
|
45 |
|
sl@0
|
46 |
#ifdef SRVSUBSESS_TRACE
|
sl@0
|
47 |
|
sl@0
|
48 |
#define __SRVSUBSESS_TRACE(_text) RDebug::Print(_L(_text))
|
sl@0
|
49 |
#define __SRVSUBSESS_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1))
|
sl@0
|
50 |
#define __SRVSUBSESS_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2))
|
sl@0
|
51 |
#define __SRVSUBSESS_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3))
|
sl@0
|
52 |
#define __SRVSUBSESS_TRACE4(_text, _a1, _a2, _a3, _a4) RDebug::Print(_L(_text), (_a1), (_a2), (_a3),(_a4))
|
sl@0
|
53 |
|
sl@0
|
54 |
#else
|
sl@0
|
55 |
|
sl@0
|
56 |
#define __SRVSUBSESS_TRACE(_text)
|
sl@0
|
57 |
#define __SRVSUBSESS_TRACE1(_text, _a1)
|
sl@0
|
58 |
#define __SRVSUBSESS_TRACE2(_text, _a1, _a2)
|
sl@0
|
59 |
#define __SRVSUBSESS_TRACE3(_text, _a1, _a2, _a3)
|
sl@0
|
60 |
#define __SRVSUBSESS_TRACE4(_text, _a1, _a2, _a3, _a4)
|
sl@0
|
61 |
|
sl@0
|
62 |
#endif
|
sl@0
|
63 |
|
sl@0
|
64 |
|
sl@0
|
65 |
#endif // CENTREP_LOG_H
|
sl@0
|
66 |
|