cpsecplugins/devicelockplugin/src/debug.h
branchRCL_3
changeset 22 03674e5abf46
parent 21 09b1ac925e3f
child 23 94da73d93b58
equal deleted inserted replaced
21:09b1ac925e3f 22:03674e5abf46
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0""
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  
       
    15  *
       
    16  */
       
    17 
       
    18 #if defined (_DEBUG)
       
    19 
       
    20 _LIT( KLogFile, "Devicelockplugin.log" );
       
    21 _LIT( KLogDir, "Devicelockplugin" );
       
    22 
       
    23 #include <e32std.h>
       
    24 #include <f32file.h>
       
    25 #include <flogger.h>
       
    26 #include <e32svr.h>
       
    27 
       
    28 inline void FWrite (TRefByValue<const TDesC> aFmt,...)
       
    29     {
       
    30     VA_LIST list;
       
    31     VA_START( list, aFmt );
       
    32     RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list );
       
    33     }
       
    34 
       
    35     #define Dprint(arg...)    FWrite arg;
       
    36 #else
       
    37     #define Dprint(arg...)
       
    38 #endif  // _DEBUG
       
    39 
       
    40