diff -r 7fdc9a71d314 -r 8ad140f3dd41 hti/HtiCommPlugins/HtiBtCommPlugin/BtEngine/inc/HtiBtEngineLogging.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hti/HtiCommPlugins/HtiBtCommPlugin/BtEngine/inc/HtiBtEngineLogging.h Wed Oct 13 16:17:58 2010 +0300 @@ -0,0 +1,92 @@ +/* +* 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: Logging for Bluetooth engine. +* +*/ + + +#ifndef __HTIBTENGINELOGGING_H__ +#define __HTIBTENGINELOGGING_H__ + +// INCLUDES +#include + +/******************************************************/ +/** LOG SETUP **/ +/******************************************************/ +_LIT(KLogFolder, "Hti"); +_LIT(KLogFile, "BtSerialEngine.log"); + +#ifdef __ENABLE_LOGGING__ +// Comment out the levels which are marked supported in the build +// (and which are used runtime). +// +#define LOG_LEVEL_ERROR_SUPPORTED +#define LOG_LEVEL_WARN_SUPPORTED +#define LOG_LEVEL_INFO_SUPPORTED +//#define LOG_LEVEL_DEBUG_SUPPORTED +#endif + +/******************************************************/ +/** MACRO DEFINITIONS **/ +/******************************************************/ + +// Macros: Example: Result: +// LOGFMT_E(formatstring, parameter) LOGFMT_E("Leave in RunL: %d", -6)