sensorservices/sensordatacompensator/inc/traceconfiguration.hrh
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2008-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:  Tracing flags configuration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TRACECONFIGURATION_HRH
       
    20 #define TRACECONFIGURATION_HRH
       
    21 
       
    22 //-----------------------------------------------------------------------------
       
    23 // Trace definitions
       
    24 //-----------------------------------------------------------------------------
       
    25 //
       
    26 
       
    27 /**
       
    28 * Error trace enabled
       
    29 */
       
    30 #ifdef _DEBUG
       
    31     #define ERROR_TRACE
       
    32 #else
       
    33     #undef ERROR_TRACE
       
    34 #endif
       
    35 
       
    36 /**
       
    37 * Info trace enabled
       
    38 */
       
    39 #define __SDCOMP_INFO_TRACE__
       
    40 #if defined _DEBUG && defined __SDCOMP_INFO_TRACE__
       
    41     #define INFO_TRACE
       
    42     #define TIMESTAMP_TRACE
       
    43 #else
       
    44     #undef INFO_TRACE
       
    45     #undef TIMESTAMP_TRACE
       
    46 #endif
       
    47 
       
    48 /**
       
    49 * Function trace enabled
       
    50 */
       
    51 #if defined _DEBUG && defined __SDCOMP_FUNC_TRACE__
       
    52     #define FUNC_TRACE
       
    53 #else
       
    54     #undef FUNC_TRACE
       
    55 #endif
       
    56 
       
    57 /**
       
    58 * Timestamp tracing on
       
    59 */
       
    60 #if defined _DEBUG && defined __SDCOMP_TIMESTAMP_TRACE__
       
    61     #define TIMESTAMP_TRACE
       
    62 #else
       
    63     #undef TIMESTAMP_TRACE
       
    64 #endif
       
    65 
       
    66 /**
       
    67 * Tracing current client process and thread
       
    68 */
       
    69 #ifdef _DEBUG
       
    70     #define CLIENT_TRACE
       
    71 #else
       
    72     #undef CLIENT_TRACE
       
    73 #endif
       
    74 
       
    75 /**
       
    76 * Tracing into file enabled, default RDebug
       
    77 */
       
    78 #ifdef __SDCOMP_TRACE_INTO_FILE__
       
    79     #define TRACE_INTO_FILE
       
    80 #else
       
    81     #undef TRACE_INTO_FILE
       
    82 #endif
       
    83 
       
    84 #endif