wapstack/wapmessageapi/sws/WapSwsLog.cpp
branchRCL_3
changeset 18 50bae5c5c85f
equal deleted inserted replaced
17:3f227a47ad75 18:50bae5c5c85f
       
     1 // Copyright (c) 2003-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 // WAPLOG.CPP
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 #ifdef _DEBUG
       
    20 
       
    21 #include "WapSwsLog.h"
       
    22 
       
    23 void SwsLog::Write(const TDesC& aDes)
       
    24 /*
       
    25  * Write aText to the log
       
    26  */
       
    27 	{
       
    28 	RFileLogger::Write(KSWSLogFolder(),KSWSLogFile(),EFileLoggingModeAppend,aDes);
       
    29 	}
       
    30 
       
    31 void SwsLog::Printf(TRefByValue<const TDesC> aFmt,...)
       
    32 /*
       
    33  * Write a mulitple argument list to the log, trapping and ignoring any leave
       
    34  */
       
    35 	{
       
    36 	VA_LIST list;
       
    37 	VA_START(list,aFmt);
       
    38 	RFileLogger::WriteFormat(KSWSLogFolder(),KSWSLogFile(),EFileLoggingModeAppend,aFmt,list);
       
    39 	}
       
    40 	
       
    41 #endif // _DEBUG
       
    42