locationsystemui/locationsysui/posindicator/posreversegeocodeplugin/inc/posrevgeocodelogger.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2010 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 logger.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef POSREVGEOCODELOGGER_H
       
    19 #define POSREVGEOCODELOGGER_H
       
    20 
       
    21 #include <flogger.h>
       
    22 #include <f32file.h>
       
    23 
       
    24 //#ifdef _DEBUG
       
    25 #define FUNC( x ) {  TBuf8<150> buffer; \
       
    26                      const unsigned char* string = (unsigned char*)(x); \
       
    27                      buffer.Zero(); \
       
    28                      buffer.Copy(string); \
       
    29                      RFileLogger::Write( _L("lbs"),_L("PosRevGeocode.log"),EFileLoggingModeAppend,buffer); }
       
    30 
       
    31 #define LOG ( x,y ) { TBuf8<150> buffer; \
       
    32                       const unsigned char* string = (unsigned char*)(x); \
       
    33                       buffer.Zero(); \
       
    34                       buffer.Copy(string); \
       
    35                       buffer.format(y); \
       
    36                       RFileLogger::Write( _L("lbs"),_L("PosRevGeocode.log"),EFileLoggingModeAppend,buffer); }
       
    37 
       
    38 /*#else
       
    39 #define FUNC( x )
       
    40 #define LOG ( x,y )
       
    41 #endif*/
       
    42 
       
    43 #endif /* POSREVGEOCODELOGGER_H */