wapstack/wapmessageapi/sws/WapSwsLog.h
changeset 45 28dbf5a297f4
parent 44 8b72faa1200f
child 52 60785a088077
equal deleted inserted replaced
44:8b72faa1200f 45:28dbf5a297f4
     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 //
       
    15 
       
    16 #ifndef __WAPLOG_H__
       
    17 #define __WAPLOG_H__
       
    18 
       
    19 #ifdef _DEBUG
       
    20 
       
    21 	#include <comms-infras/commsdebugutility.h>
       
    22 	#define LOG(MSG) MSG
       
    23 
       
    24 	#if defined (DETAILED_LOG)
       
    25 		#define LOG_DETAILED(MSG) MSG
       
    26 	#else
       
    27 		#define LOG_DETAILED(MSG)
       
    28 	#endif
       
    29 
       
    30 	_LIT(KSWSLogFolder,"sws");
       
    31 	_LIT(KSWSLogFile,"sws.txt");
       
    32 	_LIT(KEndOfLine,"\r\n");
       
    33 
       
    34 	class SwsLog
       
    35 		{
       
    36 	public:
       
    37 		static void Write(const TDesC& aDes);
       
    38 	    static void Printf(TRefByValue<const TDesC> aFmt, ...);
       
    39 		};
       
    40 #else
       
    41 
       
    42 	#define LOG(MSG)
       
    43 	#define LOG_DETAILED(MSG)
       
    44 
       
    45 #endif
       
    46 
       
    47 #endif