diff -r 000000000000 -r d6fe6244b863 htiui/HtiCommPlugins/HtiBtCommPlugin/BtEngine/inc/HtiBtEngineLogging.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/htiui/HtiCommPlugins/HtiBtCommPlugin/BtEngine/inc/HtiBtEngineLogging.h Tue Feb 02 00:17:27 2010 +0200 @@ -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)