inc/harvesterlog.h
changeset 0 c53acadfccc6
child 8 50de4d668bb6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     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:  Harvester server commands*
       
    15 */
       
    16 
       
    17 
       
    18 #ifndef HARVESTERLOG_H
       
    19 #define HARVESTERLOG_H
       
    20 
       
    21 #include <e32debug.h>
       
    22 #include <utf.h>
       
    23 
       
    24 #define HARVESTER_MASTER_LOG
       
    25 
       
    26 #ifdef _DEBUG
       
    27 
       
    28 #ifdef HARVESTER_MASTER_LOG
       
    29 
       
    30 #define WRITELOG(a) RDebug::Print(_L(a))
       
    31 #define WRITELOG1(a,b) RDebug::Print(_L(a),(b))
       
    32 #define WRITELOG2(a,b,c) RDebug::Print(_L(a),(b),(c))
       
    33 #define WRITELOG3(a,b,c,d) RDebug::Print(_L(a),(b),(c),(d))
       
    34 
       
    35 #define HLOG(a)  RDebug::Print((a))
       
    36 #define HLOG1(a, b)  RDebug::Print((a), (b))
       
    37 #define HLOG2(a, b, c)  RDebug::Print((a), (b), (c))
       
    38 #define HLOG3(a, b, c, d)  RDebug::Print((a), (b), (c), (d))
       
    39 #define HLOG4(a, b, c, d, e)  RDebug::Print((a), (b), (c), (d), (e))
       
    40 #define HLOG5(a, b, c, d, e, f)  RDebug::Print((a), (b), (c), (d), (e), (f))
       
    41 
       
    42 #else //HARVESTER_MASTER_LOG
       
    43 
       
    44 #define WRITELOG(a)
       
    45 #define WRITELOG1(a,b)
       
    46 #define WRITELOG2(a,b,c)
       
    47 #define WRITELOG3(a,b,c,d)
       
    48 
       
    49 #define HLOG(a)
       
    50 #define HLOG1(a, b)
       
    51 #define HLOG2(a, b, c) 
       
    52 #define HLOG3(a, b, c, d) 
       
    53 #define HLOG4(a, b, c, d, e) 
       
    54 #define HLOG5(a, b, c, d, e, f) 
       
    55 
       
    56 #endif //HARVESTER_MASTER_LOG
       
    57 
       
    58 #else  //_DEBUG
       
    59 
       
    60 #define WRITELOG(a)
       
    61 #define WRITELOG1(a,b)
       
    62 #define WRITELOG2(a,b,c)
       
    63 #define WRITELOG3(a,b,c,d)
       
    64 
       
    65 #define HLOG(a)
       
    66 #define HLOG1(a, b)
       
    67 #define HLOG2(a, b, c) 
       
    68 #define HLOG3(a, b, c, d) 
       
    69 #define HLOG4(a, b, c, d, e) 
       
    70 #define HLOG5(a, b, c, d, e, f) 
       
    71 
       
    72 #endif //_DEBUG
       
    73 
       
    74 #endif  // HARVESTERLOG_H