terminalsecurity/SCP/inc/SCPDebug.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2005 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:  terminalSecurity Debug macro definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SCPDEBUG_H
       
    21 #define SCPDEBUG_H
       
    22 
       
    23    _LIT( KLogFile, "SCP.log" );
       
    24    _LIT( KLogDir, "tarm" );
       
    25    
       
    26 //#define SCP_ENABLE_DEBUG
       
    27 #if defined (_DEBUG)
       
    28 
       
    29 #include <e32std.h>
       
    30 #include <f32file.h>
       
    31 #include <flogger.h>
       
    32 #include <e32svr.h>
       
    33 
       
    34         inline void FWrite (TRefByValue<const TDesC> aFmt,...)
       
    35             {
       
    36             VA_LIST list;
       
    37             VA_START( list, aFmt );
       
    38             RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list );
       
    39             }
       
    40 
       
    41 				#define Dprint(arg...)    FWrite arg;
       
    42 #else
       
    43 				#define Dprint(arg...)
       
    44 #endif  // _DEBUG
       
    45        
       
    46 #endif      // SCPDEBUG_H