apengine/apeng/src/ApEngineLogger.cpp
changeset 61 8b0c979bbe8c
parent 59 2709c04a4af5
child 70 ac5daea24fb0
--- a/apengine/apeng/src/ApEngineLogger.cpp	Fri Sep 03 09:38:26 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,159 +0,0 @@
-/*
-* Copyright (c) 2002 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: 
-*      Implementation of class ApEngineLogger.   
-*      
-*
-*/
-
-
-// INCLUDE FILES
-
-#ifdef __TEST_APENGINE_LOG__
-
-    #include "ApEngineLogger.h"
-    #include <flogger.h>
-
-    // ================= CONSTANTS =======================
-
-    /// ApEngine logging directory.
-    _LIT( KApEngineLogDir, "ApEngine" );
-    /// ApEngine log file name.
-    _LIT( KApEngineLogFile, "ApEngine.txt" );
-
-
-    // ================= MEMBER FUNCTIONS =======================
-
-    // ---------------------------------------------------------
-    // ApEngineLogger::Write()
-    // ---------------------------------------------------------
-    //
-    void ApEngineLogger::Write
-    ( TInt32 aMask, TInt aLevel, TRefByValue<const TDesC16> aFmt, ... )
-        {
-        if( (aMask & APENGINE_LOG_MASK) && (aLevel <= APENGINE_LOG_LEVEL) )
-            {
-            VA_LIST list;
-            VA_START( list, aFmt );
-            RFileLogger::WriteFormat
-                (
-                KApEngineLogDir,
-                KApEngineLogFile,
-                EFileLoggingModeAppend,
-                aFmt,
-                list
-                );
-            VA_END( list );
-            }
-        }
-
-
-    // ---------------------------------------------------------
-    // ApEngineLogger::Write()
-    // ---------------------------------------------------------
-    //
-    void ApEngineLogger::Write
-    ( TInt32 aMask, TInt aLevel, 
-      TRefByValue<const TDesC16> aFmt, 
-      VA_LIST& aList )
-        {
-        if( (aMask & APENGINE_LOG_MASK) && (aLevel <= APENGINE_LOG_LEVEL) )
-            {
-            RFileLogger::WriteFormat
-                (
-                KApEngineLogDir,
-                KApEngineLogFile,
-                EFileLoggingModeAppend,
-                aFmt,
-                aList
-                );
-            }
-        }
-
-
-    // ---------------------------------------------------------
-    // ApEngineLogger::Write()
-    // ---------------------------------------------------------
-    //
-    void ApEngineLogger::Write
-    ( TInt32 aMask, TInt aLevel, TRefByValue<const TDesC8> aFmt, ... )
-        {
-        if( (aMask & APENGINE_LOG_MASK) && (aLevel <= APENGINE_LOG_LEVEL) )
-            {
-            VA_LIST list;
-            VA_START( list, aFmt );
-            RFileLogger::WriteFormat
-                (
-                KApEngineLogDir,
-                KApEngineLogFile,
-                EFileLoggingModeAppend,
-                aFmt,
-                list
-                );
-            VA_END( list );
-            }
-        }
-
-
-    // ---------------------------------------------------------
-    // ApEngineLogger::Write()
-    // ---------------------------------------------------------
-    //
-    void ApEngineLogger::Write
-    ( TInt32 aMask, TInt aLevel, 
-      TRefByValue<const TDesC8> aFmt, VA_LIST& aList )
-        {
-        if( (aMask & APENGINE_LOG_MASK) && (aLevel <= APENGINE_LOG_LEVEL) )
-            {
-            RFileLogger::WriteFormat
-                (
-                KApEngineLogDir,
-                KApEngineLogFile,
-                EFileLoggingModeAppend,
-                aFmt,
-                aList
-                );
-            }
-        }
-
-
-    // ---------------------------------------------------------
-    // ApEngineLogger::HexDump()
-    // ---------------------------------------------------------
-    //
-    void ApEngineLogger::HexDump
-            (
-            TInt32 aMask,
-            TInt aLevel, 
-            const TText* aHeader,
-            const TText* aMargin,
-            const TUint8* aPtr,
-            TInt aLen
-            )
-        {
-        if( (aMask & APENGINE_LOG_MASK) && (aLevel <= APENGINE_LOG_LEVEL) )
-            {
-            RFileLogger::HexDump
-                (
-                KApEngineLogDir,
-                KApEngineLogFile,
-                EFileLoggingModeAppend,
-                aHeader,
-                aMargin,
-                aPtr,
-                aLen
-                );
-            }
-        }
-#endif // __TEST_APENGINE_LOG__