ImagePrint/clog/inc/clog.h
branchRCL_3
changeset 21 d59c248c9d36
parent 0 d11fb78c4374
equal deleted inserted replaced
20:159fc2f68139 21:d59c248c9d36
       
     1 /*
       
     2 * Copyright (c) 2004-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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CLOG_H__
       
    20 #define __CLOG_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32std.h>
       
    24 
       
    25 #include "logdef.h"
       
    26 
       
    27 #ifdef ENABLE_LOGGING
       
    28 #define LOG(s) Log::DoLog(_L(s))
       
    29 #define LOG1(s, v) Log::DoLog( _L(s), v )
       
    30 #define LOG2(s, v1, v2) Log::DoLog( _L(s), v1, v2 )
       
    31 
       
    32 #define LOG8(s) Log::DoLog8(_L8(s))
       
    33 #define LOG81(s, v) Log::DoLog8( _L8(s), v )
       
    34 #define LOG82(s, v1, v2) Log::DoLog8( _L8(s), v1, v2 )
       
    35 
       
    36 #else
       
    37 #define LOG(s)
       
    38 #define LOG1(s, v)
       
    39 #define LOG2(s, v1, v2)
       
    40 #define LOG8(s)
       
    41 #define LOG81(s, v)
       
    42 #define LOG82(s, v1, v2)
       
    43 #endif // ENABLE_LOGGING
       
    44 
       
    45 class Log
       
    46     {
       
    47 
       
    48     public:
       
    49     	
       
    50         static void DoLog( TRefByValue<const TDesC> aText, ... );
       
    51 
       
    52         static void DoLog8( TRefByValue<const TDesC8> aText, ... );
       
    53     };
       
    54 
       
    55 #endif  // __CLOG_H__
       
    56 
       
    57 // End of File