omadm/lawmo/lawmoplugins/mediaplugin/inc/lawmodebug.h
branchRCL_3
changeset 23 c4687ff85147
equal deleted inserted replaced
22:9360ca28b668 23:c4687ff85147
       
     1 /*
       
     2 * Copyright (c) 2000 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: Implementation of terminalsecurity components
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _LAW_IMG_HEADER_
       
    20 #define _LAW_IMG_HEADER_
       
    21 
       
    22 #include <f32file.h>
       
    23 #include <flogger.h>
       
    24 // CONSTANTS
       
    25 _LIT( KLawLogFolderName, "lawmo" );
       
    26 _LIT( KLawLogFileName, "img.log" );
       
    27 // MACROS
       
    28 #ifdef _DEBUG
       
    29 #define _LAW_IMG_DEBUG
       
    30 #endif
       
    31 
       
    32 #ifdef _LAW_IMG_DEBUG
       
    33 		#define RDEBUG(X)					RFileLogger::Write( KLawLogFolderName, KLawLogFileName, EFileLoggingModeAppend, _L(X) )
       
    34 		#define RDEBUG_2(X,Y)			RFileLogger::WriteFormat( KLawLogFolderName, KLawLogFileName, EFileLoggingModeAppend, _L(X),Y )	
       
    35 		#define RDEBUG_3(X,Y,Z)	  RFileLogger::WriteFormat( KLawLogFolderName, KLawLogFileName, EFileLoggingModeAppend, _L(X),Y,Z )	
       
    36 #else
       
    37 
       
    38 	#if defined (_DEBUG)
       
    39 		#define RDEBUG(X)								RDebug::Print(_L(X))
       
    40 		#define RDEBUG_2(X,Y)						RDebug::Print(_L(X),Y)
       
    41 		#define RDEBUG_3(X,Y,Z)					RDebug::Print(_L(X),Y,Z)
       
    42 	#else
       
    43 		#define RDEBUG(X)								
       
    44 		#define RDEBUG_2(X,Y)						
       
    45 		#define RDEBUG_3(X,Y,Z)	
       
    46 	#endif // _DEBUG
       
    47 	
       
    48 #endif // _LAW_IMG_DEBUG
       
    49 
       
    50 #endif // _LAW_IMG_HEADER_
       
    51 
       
    52 
       
    53