commsconfig/cscengine/inc/cscenglogger.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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:  Provides macros for logging
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSCENGLOGGER_H
       
    20 #define CSCENGLOGGER_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32debug.h>
       
    24 
       
    25 
       
    26 //----------------------------------------------------------------------------
       
    27 //  USER LOGGING SETTINGS
       
    28 //----------------------------------------------------------------------------
       
    29 
       
    30 #ifndef _DEBUG
       
    31 
       
    32 /***************************
       
    33 * Logging method variants:
       
    34 *   0 = No logging
       
    35 *   1 = RDebug
       
    36 ***************************/ 
       
    37 
       
    38 #define CSCENG_DEBUG             0   // UREL BUILD
       
    39 
       
    40 #else
       
    41 
       
    42 #define CSCENG_DEBUG             1   // UDEB BUILD
       
    43 
       
    44 #endif // _DEBUG
       
    45 
       
    46 
       
    47 
       
    48 //----------------------------------------------------------------------------
       
    49 //  LOGGING MACROs (DO NOT EDIT)
       
    50 //
       
    51 //  USE THESE MACROS IN YOUR CODE
       
    52 //----------------------------------------------------------------------------
       
    53 
       
    54 #if CSCENG_DEBUG == 1    // RDebug
       
    55 
       
    56 #define CSCENGDEBUG(AA)           { RDebug::Print(_L(AA)); }
       
    57 #define CSCENGDEBUG2(AA,BB)       { RDebug::Print(_L(AA),BB); }
       
    58 #define CSCENGDEBUG3(AA,BB,CC)    { RDebug::Print(_L(AA),BB,CC); }
       
    59 #define CSCENGDEBUG4(AA,BB,CC,DD) { RDebug::Print(_L(AA),BB,CC,DD); }
       
    60 
       
    61 #else   // CSCENG_DEBUG == 0 or invalid -> Disable loggings
       
    62 
       
    63 #define CSCENGDEBUG(AA)          
       
    64 #define CSCENGDEBUG2(AA,BB)     
       
    65 #define CSCENGDEBUG3(AA,BB,CC)    
       
    66 #define CSCENGDEBUG4(AA,BB,CC,DD) 
       
    67 
       
    68 #endif  // CSCENG_DEBUG
       
    69 
       
    70 #endif  // CSCENGLOGGER_H