controlpanel/controlpanel_plat/inc/cplogger.h
changeset 55 4c15d9aa2384
parent 47 dbe66a66f6a9
child 62 531951b2e59a
--- a/controlpanel/controlpanel_plat/inc/cplogger.h	Thu Aug 05 11:11:52 2010 +0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-/*
-* 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 CPLOGGER_H
-#define CPLOGGER_H
-
-
-/* 
-    config file path :/logconf/controlpanellog.conf
-
-    Format:
-
-    [CpFramework]
-    logdatetime = 1
-    logloggername = 1
-    datetimeformat = hh:mm:ss:zzz
-    output = debugoutput fileoutput
-    fileoutput/logfile = C:/data/logs/cpframework.log
-    fileoutput/truncate = 1
-    
-    [CpPerformance]
-    logdatetime = 1
-    datetimeformat = hh:mm:ss:zzz
-    output = fileoutput
-    fileoutput/logfile = C:/data/logs/cpperformance.log
-    fileoutput/truncate = 1
-*/
-
-#include <QLatin1String>
-#include <logger.h>
-
-/*
- make CPFW_LOG work
-*/
-
-//#define ENABLE_CPFW_LOG
-
-/*
- make CPPERF_LOG work
-*/
-
-//#define ENABLE_CPPERF_LOG
-
-#define CPFW_LOGGER_NAME       QLatin1String("CpFramework")
-#define CPPERF_LOGGER_NAME     QLatin1String("CpPerformance")
-
-#define CP_LOGGER_CONFIG_PATH QLatin1String(":/logconf/controlpanellog.conf")
-
-#ifdef ENABLE_CPFW_LOG
-    #define CPFW_LOG(str)   Logger::instance(CPFW_LOGGER_NAME)->log(str);
-#else
-    #define CPFW_LOG(str)
-#endif
-
-#ifdef ENABLE_CPPERF_LOG
-    #define CPPERF_LOG(str) Logger::instance(CPPERF_LOGGER_NAME)->log(str);
-#else
-    #define CPPERF_LOG(str)
-#endif
-
-#endif /* CPLOGGER_H */