controlpanelui/src/cpserviceprovider/src/cpsplogger.h
author hgs
Wed, 29 Sep 2010 10:09:58 +0800
changeset 40 593f946f4fec
parent 12 624337f114fe
permissions -rw-r--r--
201037_2

/*
* 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 CPSPLOGGER_H
#define CPSPLOGGER_H

#include <QLatin1String>
#include <logger.h>

#ifdef ENABLE_CPSP_LOG
    #define CPSP_LOGGER_NAME          QLatin1String("CpServiceProvider")
    #define CPSP_LOGGER_CONFIG_PATH   QLatin1String(":/logconf/cpserviceproviderlog.conf")

    #define CPSP_LOG(str)             Logger::instance(CPSP_LOGGER_NAME)->log(str);
    #define CPSP_LOG_FUNC_ENTRY(func) LogFunctionEntryHelper ___cpsp_log_func_entry_helper(CPSP_LOGGER_NAME,func);
#else
    #define CPSP_LOG(str)
    #define CPSP_LOG_FUNC_ENTRY(func)
#endif


#endif