localconnectivityservice/legacymodemplugin/inc/debugconfig.h
changeset 0 c3e98f10fcf4
equal deleted inserted replaced
-1:000000000000 0:c3e98f10fcf4
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Logging configure file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ATEXT_DEBUGCONFIG_H
       
    20 #define ATEXT_DEBUGCONFIG_H
       
    21 
       
    22 #include "prjconfig.h"
       
    23 
       
    24 /**
       
    25  * Custom logging variations.
       
    26  */
       
    27 #ifdef PRJ_FILE_TRACE
       
    28 _LIT(KLogFile,"lccustomplugin.txt");
       
    29 _LIT(KLogDir,"LCCUSTOMPLUGIN");
       
    30 #endif
       
    31 
       
    32 #ifdef PRJ_ENABLE_TRACE
       
    33 _LIT(KTracePrefix16, "[LCCUSTOMPLUGIN] ");
       
    34 _LIT8(KTracePrefix8, "[LCCUSTOMPLUGIN] ");
       
    35 _LIT8(KFuncFormat8, "><%S");
       
    36 _LIT8(KFuncThisFormat8, "><%S, [0x%08X]");
       
    37 _LIT8(KFuncEntryFormat8, ">%S");
       
    38 _LIT8(KFuncEntryThisFormat8, ">%S, [0x%08X]");
       
    39 _LIT8(KFuncExitFormat8, "<%S");
       
    40 
       
    41 _LIT(KPanicCategory, "lccustomplugin");
       
    42 _LIT8(KPanicPrefix8, "PANIC code ");
       
    43 _LIT8(KLeavePrefix8, "LEAVE code ");
       
    44 #endif
       
    45 
       
    46 const TInt KMaxLogLineLength = 512;
       
    47 
       
    48 #define KPRINTERROR        0x00000001 // Tracing level: error
       
    49 #define KPRINTINFO        0x00000002 // Tracing level: function trace
       
    50 #define KPRINTSTATE        0x00000004 // Tracing level: state machine info
       
    51 #define KPRINTWARNING   0x00000008 // Tracing level: warning
       
    52 
       
    53 const TInt KTraceMask = KPRINTERROR | KPRINTINFO | KPRINTSTATE | KPRINTWARNING;
       
    54 
       
    55 #endif // ATEXT_DEBUGCONFIG_H