mmsengine/mmsserver/inc/MmsServerDebugLogging.h
changeset 31 ebfee66fde93
parent 0 72b543305e3a
equal deleted inserted replaced
30:6a20128ce557 31:ebfee66fde93
       
     1 /*
       
     2 * Copyright (c) 2004-2006 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:  MmsServerDebugLogging  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MMSSERVERDEBUGLOGGING_H
       
    21 #define __MMSSERVERDEBUGLOGGING_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <flogger.h>
       
    25 
       
    26 // MACROS
       
    27 #ifndef _NO_MMSS_LOGGING_
       
    28   _LIT( KMmsServerLogFile,"mmss.txt");
       
    29   _LIT( KMmsServerLogFolder,"mmss");
       
    30   #define LOG(AAA)          RFileLogger::Write(KMmsServerLogFolder(),KMmsServerLogFile(),EFileLoggingModeAppend,AAA)
       
    31   #define LOG2(AAA,BBB)     RFileLogger::WriteFormat(KMmsServerLogFolder(),KMmsServerLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB)
       
    32   #define LOG3(AAA,BBB,ZZZ) RFileLogger::WriteFormat(KMmsServerLogFolder(),KMmsServerLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB,ZZZ)
       
    33 #else // i.e. _NO_MMSS_LOGGING_ defined
       
    34   #define LOG(AAA)
       
    35   #define LOG2(AAA,BBB)
       
    36   #define LOG3(AAA,BBB,ZZZ)
       
    37   #define LOG7(AAA,BBB,ZZZ,DDD,EEE,FFF,GGG)
       
    38 #endif // _NO_MMSS_LOGGING_
       
    39 
       
    40 #endif // __MMSSERVERDEBUGLOGGING_H   
       
    41             
       
    42 // End of File