phonebookengines/contactsmodel/cntsrv/inc/CCntLogger.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /**
       
     2 * Copyright (c) 2006-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /* If __VERBOSE_DEBUG__ is set the following DEBUG_PRINT macros' will enable debug logs
       
    21    else DEBUG_PRINT macros' do nothing! (empty #define)
       
    22 */
       
    23 
       
    24 #ifdef __VERBOSE_DEBUG__
       
    25 #define DEBUG_PRINT1(define,p1)  if(define) RDebug::Print(p1)
       
    26 #define DEBUG_PRINT2(define,p1,p2)  RDebug::Print(p1,p2)
       
    27 #define DEBUG_PRINTDN2(define,p1,p2)  DebugLogNotification(p1,p2)
       
    28 #define DEBUG_PRINTVN2(define,p1,p2)  DebugLogViewNotification(p1,p2)
       
    29 #define DEBUG_PRINTF1(define,p1)  RDebug::Printf(p1)
       
    30 #define DEBUG_PRINTF2(define,p1,p2)  RDebug::Printf(p1,p2)
       
    31 #define  DEBUG_PRINT4(define,p1,p2,p3,p4)  DebugLogIPC(p1,p2,p3,p4)
       
    32 #endif
       
    33 
       
    34 #ifndef __VERBOSE_DEBUG__
       
    35 #define DEBUG_PRINT1(define,p1) 
       
    36 #define DEBUG_PRINT2(define,p1,p2) 
       
    37 #define DEBUG_PRINTDN2(define,p1,p2) 
       
    38 #define DEBUG_PRINTVN2(define,p1,p2) 
       
    39 #define DEBUG_PRINTF1(define,p1) 
       
    40 #define DEBUG_PRINTF2(define,p1,p2) 
       
    41 #define  DEBUG_PRINT4(define,p1,p2,p3,p4)
       
    42 #endif