locationsystemui/locationsysui/posindicator/posindicatorhelperserver/inc/posindicatorlogger.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 
       
    19 #ifndef POSINDICATORLOGGER_H
       
    20 #define POSINDICATORLOGGER_H
       
    21 
       
    22 #include <flogger.h>
       
    23 #include <f32file.h>
       
    24 
       
    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("PosIndicatorLog.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.AppendNum(y); \
       
    36                      RFileLogger::Write( _L("lbs"),_L("PosIndicatorLog.log"),EFileLoggingModeAppend,buffer); }
       
    37                 
       
    38 #endif /* POSINDICATORLOGGER_H*/