dbgagents/trkagent/toolsstarter/toolsstarterserver/inc/logging.h
author ravikurupati
Tue, 02 Mar 2010 10:33:16 +0530
changeset 0 c6b0df440bee
permissions -rw-r--r--
Initial contribution of EPL licensed sources

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


#ifndef __LOGGING_H__
#define __LOGGING_H__

#include <e32debug.h>


//
// Turn on this logging for debugging purposes when running with test code.  
// If you turn on the logging either when tracing or while debugging, 
// it won't work as the printf messages are handled both by trace core and debugger.
//
#define _LOGGING_


#ifdef _LOGGING_
#define LOG_MSG(x) RDebug::Printf(x)
#define LOG_MSG2(x, y) RDebug::Printf(x, y)
#define LOG_MSG3(x, y, z) RDebug::Printf(x, y, z)
#else
#define LOG_MSG(x)
#define LOG_MSG2(x, y)
#define LOG_MSG3(x, y, z)
#endif

#endif