commsconfig/cscapplicationui/inc/csclogger.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 CSCLOGGER_H
       
    20 #define CSCLOGGER_H
       
    21 
       
    22 #include <e32def.h>
       
    23 
       
    24 
       
    25 //----------------------------------------------------------------------------
       
    26 //  USER LOGGING SETTINGS
       
    27 //----------------------------------------------------------------------------
       
    28 
       
    29 #ifndef _DEBUG
       
    30 
       
    31 /***************************
       
    32 * Logging method variants:
       
    33 *   0 = No logging
       
    34 *   1 = RDebug
       
    35 ***************************/ 
       
    36 
       
    37 #define CSC_DEBUG             0   // UREL BUILD
       
    38 
       
    39 #else
       
    40 
       
    41 #define CSC_DEBUG             1   // UDEB BUILD
       
    42 
       
    43 #endif // _DEBUG
       
    44 
       
    45 
       
    46 
       
    47 //----------------------------------------------------------------------------
       
    48 //  LOGGING MACROs (DO NOT EDIT)
       
    49 //
       
    50 //  USE THESE MACROS IN YOUR CODE
       
    51 //----------------------------------------------------------------------------
       
    52 
       
    53 #if CSC_DEBUG == 1    // RDebug
       
    54 
       
    55 #define CSCDEBUG(AA)           { RDebug::Print(_L(AA)); }
       
    56 #define CSCDEBUG2(AA,BB)       { RDebug::Print(_L(AA),BB); }
       
    57 #define CSCDEBUG3(AA,BB,CC)    { RDebug::Print(_L(AA),BB,CC); }
       
    58 #define CSCDEBUG4(AA,BB,CC,DD) { RDebug::Print(_L(AA),BB,CC,DD); }
       
    59 
       
    60 #else   // CSC_DEBUG == 0 or invalid -> Disable loggings
       
    61 
       
    62 #define CSCDEBUG(AA)          
       
    63 #define CSCDEBUG2(AA,BB)     
       
    64 #define CSCDEBUG3(AA,BB,CC)    
       
    65 #define CSCDEBUG4(AA,BB,CC,DD) 
       
    66 
       
    67 #endif  // CSC_DEBUG
       
    68 
       
    69 #endif  // CSCLOGGER_H
       
    70