linklayercontrol/networkinterfacemgr/inc/Ni_Log.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 /**
       
     2 * Copyright (c) 2002-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 
       
    19 
       
    20 /**
       
    21  @file NI_LOG.H
       
    22  @internalComponent
       
    23 */
       
    24 
       
    25 
       
    26 #if !defined(__NI_LOG_H__)
       
    27 #define __NI_LOG_H__
       
    28 
       
    29 #include <comms-infras/commsdebugutility.h>
       
    30 
       
    31 #if defined(__FLOG_ACTIVE)
       
    32 
       
    33 
       
    34 /**
       
    35 @internalComponent
       
    36 */
       
    37 	#ifndef LOG
       
    38 		#define LOG(MSG) MSG
       
    39 	#endif
       
    40 
       
    41 	#if defined (DETAILED_LOG)
       
    42 
       
    43 /**
       
    44 @internalComponent
       
    45 */
       
    46 		#ifndef LOG_DETAILED
       
    47 			#define LOG_DETAILED(MSG) MSG
       
    48 		#endif
       
    49 	#else
       
    50 		#ifndef LOG_DETAILED
       
    51 			#define LOG_DETAILED(MSG)
       
    52 		#endif
       
    53 	#endif
       
    54 
       
    55 /**
       
    56 @internalComponent
       
    57 */
       
    58 	_LIT(KNifmanLogFolder,"Nifman");
       
    59 	_LIT(KNifmanLogFile,"Nifman.txt");
       
    60 
       
    61 /**
       
    62 @internalComponent
       
    63 */
       
    64 	_LIT(KEndOfLine,"\r\n");
       
    65 
       
    66 /**
       
    67 @internalComponent
       
    68 */
       
    69 	const TInt KNifmanLogHexDumpWidth = 16;
       
    70 
       
    71 	class NifmanLog
       
    72 /**
       
    73 @internalComponent
       
    74 */
       
    75 		{
       
    76 
       
    77 	public:
       
    78 	    static void Printf(TRefByValue<const TDesC> aFmt, ...);
       
    79 	    static void Printf(TRefByValue<const TDesC8> aFmt, ...);
       
    80 		};
       
    81 
       
    82 #else
       
    83 
       
    84 	#define LOG(MSG)
       
    85 	#define LOG_DETAILED(MSG)
       
    86 
       
    87 #endif
       
    88 
       
    89 #endif // __NI_LOG_H__
       
    90