browserutilities/feedsengine/FeedsServer/Common/inc/Logger.h
changeset 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2005 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 the License "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:  Feeds logging
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef LOGGER_H
       
    20 #define LOGGER_H
       
    21 
       
    22 #ifdef _DEBUG
       
    23 #include <Flogger.h>
       
    24 
       
    25 #define FEED_LOG(a, b, c, d) RFileLogger::WriteFormat((a), (b), (c), (d))
       
    26 #define FEED_LOG1(a, b, c, d, e) RFileLogger::WriteFormat((a), (b), (c), (d), (e))
       
    27 #define FEED_LOG2(a, b, c, d, e, f) RFileLogger::WriteFormat((a), (b), (c), (d), (e), (f))
       
    28 #define FEED_LOG3(a, b, c, d, e, f, g) RFileLogger::WriteFormat((a), (b), (c), (d), (e), (f), (g))
       
    29 #define FEED_LOG4(a, b, c, d, e, f, g, h) RFileLogger::WriteFormat((a), (b), (c), (d), (e), (f), (g), (h))
       
    30 #define FEED_LOG5(a, b, c, d, e, f, g, h, i) RFileLogger::WriteFormat((a), (b), (c), (d), (e), (f), (g), (h), (i))
       
    31 #define FEED_LOG6(a, b, c, d, e, f, g, h, i, j) RFileLogger::WriteFormat((a), (b), (c), (d), (e), (f), (g), (h), (i), (j))
       
    32 
       
    33 #else
       
    34 
       
    35 #define FEED_LOG(a, b, c, d)
       
    36 #define FEED_LOG1(a, b, c, d, e)
       
    37 #define FEED_LOG2(a, b, c, d, e, f)
       
    38 #define FEED_LOG3(a, b, c, d, e, f, g)
       
    39 #define FEED_LOG4(a, b, c, d, e, f, g, h) 
       
    40 #define FEED_LOG5(a, b, c, d, e, f, g, h, i) 
       
    41 #define FEED_LOG6(a, b, c, d, e, f, g, h, i, j) 
       
    42 
       
    43 #endif
       
    44 #endif
       
    45