sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef CENTREP_LOG_H sl@0: #define CENTREP_LOG_H sl@0: sl@0: #include sl@0: sl@0: // sl@0: // MACROs for trace statements in client/server code. sl@0: // sl@0: sl@0: #ifdef CENTREP_TRACE sl@0: sl@0: #define __CENTREP_TRACE(_text) RDebug::Print(_L(_text)) sl@0: #define __CENTREP_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1)) sl@0: #define __CENTREP_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2)) sl@0: #define __CENTREP_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3)) sl@0: sl@0: #else sl@0: sl@0: #define __CENTREP_TRACE(_text) sl@0: #define __CENTREP_TRACE1(_text, _a1) sl@0: #define __CENTREP_TRACE2(_text, _a1, _a2) sl@0: #define __CENTREP_TRACE3(_text, _a1, _a2, _a3) sl@0: sl@0: #endif sl@0: sl@0: // macro for trace statements of just the server subsession sl@0: // note: this is needed for greater granularity than the centrep_trace macro sl@0: // offers sl@0: sl@0: sl@0: #ifdef SRVSUBSESS_TRACE sl@0: sl@0: #define __SRVSUBSESS_TRACE(_text) RDebug::Print(_L(_text)) sl@0: #define __SRVSUBSESS_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1)) sl@0: #define __SRVSUBSESS_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2)) sl@0: #define __SRVSUBSESS_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3)) sl@0: #define __SRVSUBSESS_TRACE4(_text, _a1, _a2, _a3, _a4) RDebug::Print(_L(_text), (_a1), (_a2), (_a3),(_a4)) sl@0: sl@0: #else sl@0: sl@0: #define __SRVSUBSESS_TRACE(_text) sl@0: #define __SRVSUBSESS_TRACE1(_text, _a1) sl@0: #define __SRVSUBSESS_TRACE2(_text, _a1, _a2) sl@0: #define __SRVSUBSESS_TRACE3(_text, _a1, _a2, _a3) sl@0: #define __SRVSUBSESS_TRACE4(_text, _a1, _a2, _a3, _a4) sl@0: sl@0: #endif sl@0: sl@0: sl@0: #endif // CENTREP_LOG_H sl@0: