cpsecplugins/devicelockplugin/src/debug.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 13:44:17 +0300
changeset 22 6b63ca65093a
parent 19 098e361762d2
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
 * 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:  
 *
 */

#if defined (_DEBUG)

_LIT( KLogFile, "Devicelockplugin.log" );
_LIT( KLogDir, "Devicelockplugin" );

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

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

    #define Dprint(arg...)    FWrite arg;
#else
    #define Dprint(arg...)
#endif  // _DEBUG