terminalsecurity/SCP/DmEventNotifier/inc/DmEventNotifierDebug.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:44:00 +0200
changeset 5 3f7d9dbe57c8
parent 0 b497e44ab2fc
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* 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: This header contains the debug macros used by the application
*
*/
#ifndef __DMEVENTNOTIFIERDEBUG_H__
#define __DMEVENTNOTIFIERDEBUG_H__

#include <e32std.h>
#include <f32file.h>
#include <flogger.h>
#include <e32svr.h>

_LIT( KLogFile, "DmEventNotifier.log" );
_LIT( KLogDirFullName, "c:\\logs\\" );
_LIT( KLogDir, "tarm" );

inline void FWrite (TRefByValue<const TDesC> aFmt,...)
    {
    VA_LIST list;
    VA_START( list, aFmt );
    RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list );
    }

#if defined (_DEBUG)

#if defined(__WINS__)
    #define _DMEVNT_DEBUG(arg...)    RDebug::Print(arg);
#else
    #define _DMEVNT_DEBUG(arg...)    FWrite(arg);
#endif

#else
    #define _DMEVNT_DEBUG(arg...)
	
#endif //_DEBUG
#endif      // __DMEVENTNOTIFIERDEBUG_H__
// End of File