radioapp/radiouiengine/tsrc/inc/trace.h
changeset 53 bb6ed1806599
parent 50 c44f9bb56771
equal deleted inserted replaced
50:c44f9bb56771 53:bb6ed1806599
    38 
    38 
    39 /**
    39 /**
    40 * Prefix trace macro to complete tracing with component name.
    40 * Prefix trace macro to complete tracing with component name.
    41 * Returns TDesC which can be used directly with RDebug or RFileLogger.
    41 * Returns TDesC which can be used directly with RDebug or RFileLogger.
    42 */
    42 */
    43 #define _PREFIX_TRACE( aMsg ) TPtrC( (const TText*)L"[t_radioenginewrapper]: " L##aMsg )
    43 #define _PREFIX_TRACE( aMsg ) TPtrC( (const TText*)L"[t_radiouiengine]: " L##aMsg )
    44 
    44 
    45 /**
    45 /**
    46 * Prefix error trace
    46 * Prefix error trace
    47 */
    47 */
    48 #define _PREFIX_ERROR( aMsg ) _PREFIX_TRACE( "[ERROR: %d]: " L##aMsg )
    48 #define _PREFIX_ERROR( aMsg ) _PREFIX_TRACE( "[ERROR: %d]: " L##aMsg )
    53 #define _PREFIX_INFO( aMsg ) _PREFIX_TRACE( "[INFO]: " L##aMsg )
    53 #define _PREFIX_INFO( aMsg ) _PREFIX_TRACE( "[INFO]: " L##aMsg )
    54 
    54 
    55 /**
    55 /**
    56 * Prefix macro for strings
    56 * Prefix macro for strings
    57 */
    57 */
    58 #define _PREFIX_CHAR( aMsg ) (const char*)"[t_radioenginewrapper]: " ##aMsg
    58 #define _PREFIX_CHAR( aMsg ) (const char*)"[t_radiouiengine]: " ##aMsg
    59 
    59 
    60 /**
    60 /**
    61 * Define needed directories if TRACE_INTO_FILE macro in use
    61 * Define needed directories if TRACE_INTO_FILE macro in use
    62 */
    62 */
    63 #ifdef TRACE_INTO_FILE
    63 #ifdef TRACE_INTO_FILE