networkcontrol/ipscpr/src/ipscprlog.cpp
branchRCL_3
changeset 58 8d540f55e491
parent 57 abbed5a4b42a
child 59 e36178c55292
child 63 425d8f4f7fa5
equal deleted inserted replaced
57:abbed5a4b42a 58:8d540f55e491
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Implementation file for the IP CPR Logger
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file ipcprlog.cpp
       
    20 */
       
    21 
       
    22 #ifdef _DEBUG
       
    23 
       
    24 #include <e32std.h>
       
    25 #include "ipscprlog.h"
       
    26 #include "comms-infras/commsdebugutility.h"
       
    27 
       
    28 /**
       
    29 Comms Debug Utility Folder Name
       
    30 @internalComponent
       
    31 */
       
    32 _LIT(KQFrameLogFolder, "SubConn");
       
    33 
       
    34 /**
       
    35 Comms Debug Utilitiy File Name
       
    36 @internalComponent
       
    37 */
       
    38 _LIT(KQFrameLogFile, "ipscpr");
       
    39 
       
    40 void IpCprLog::Printf(TRefByValue<const TDesC> aFmt,...)
       
    41 /**
       
    42 Write arguments in supplied format to log file
       
    43 */
       
    44 	{
       
    45 #if defined __FLOG_ACTIVE
       
    46 	VA_LIST list;
       
    47 	VA_START(list,aFmt);
       
    48 	RFileLogger::WriteFormat(KQFrameLogFolder(), KQFrameLogFile(), EFileLoggingModeAppend, aFmt, list);
       
    49 #else // stop variable not used message
       
    50 	(void)aFmt;
       
    51 	(void)KQFrameLogFolder();
       
    52 	(void)KQFrameLogFile();
       
    53 #endif
       
    54 	}
       
    55 
       
    56 void IpCprLog::Printf(TRefByValue<const TDesC8> aFmt,...)
       
    57 /**
       
    58 Write arguments in supplied format to log file
       
    59 */
       
    60 	{
       
    61 #if defined __FLOG_ACTIVE
       
    62 	VA_LIST list;
       
    63 	VA_START(list,aFmt);
       
    64 	RFileLogger::WriteFormat(KQFrameLogFolder(), KQFrameLogFile(), EFileLoggingModeAppend, aFmt, list);
       
    65 #else
       
    66 	(void)aFmt;
       
    67 	(void)KQFrameLogFolder();
       
    68 	(void)KQFrameLogFile();
       
    69 #endif
       
    70 	}
       
    71 
       
    72 #endif // _DEBUG
       
    73