diff -r d45095c2f4f3 -r b1fb57be53fe mmappcomponents/playbackhelper/inc/playbackhelper_log.h --- a/mmappcomponents/playbackhelper/inc/playbackhelper_log.h Tue Feb 02 00:27:58 2010 +0200 +++ b/mmappcomponents/playbackhelper/inc/playbackhelper_log.h Fri Mar 19 09:38:24 2010 +0200 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2008 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" @@ -15,9 +15,7 @@ * */ -// Version : %version: 4 % - - +// Version : %version: 5 % #ifndef PLAYBACKHELPER_LOG_H @@ -26,21 +24,6 @@ // INCLUDES #include #include -#include - - - -// #define _PLAYBACKHELPER_FILE_LOGGING_ - -#ifdef _DEBUG - #define PLAYBACKHELPER_DEBUG RDebug::Print -#else - #ifdef _PLAYBACKHELPER_FILE_LOGGING_ - #define PLAYBACKHELPER_DEBUG PlaybackHelperDebug::FileLog - #else - #define PLAYBACKHELPER_DEBUG RDebug::Print - #endif -#endif class PlaybackHelperDebug @@ -49,18 +32,15 @@ inline static void NullLog( TRefByValue /*aFmt*/, ... ) { } +}; - inline static void FileLog( TRefByValue aFmt, ... ) - { - VA_LIST list; - VA_START(list,aFmt); - RFileLogger::WriteFormat( _L("PlaybackHelper"), - _L("playbackhelper.log"), - EFileLoggingModeAppend, - aFmt, - list ); - } -}; + +#ifdef _DEBUG + #define PLAYBACKHELPER_DEBUG RDebug::Print +#else + #define PLAYBACKHELPER_DEBUG PlaybackHelperDebug::NullLog +#endif + #endif // PLAYBACKHELPER_LOG_H