atext/plugins/limitedpdpplugin/inc/debugconfig.h
branchRCL_3
changeset 22 786b94c6f0a4
equal deleted inserted replaced
21:14e240312f6f 22:786b94c6f0a4
       
     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 LIMITEDPDPPLUGIN_DEBUGCONFIG_H
       
    20 #define LIMITEDPDPPLUGIN_DEBUGCONFIG_H
       
    21 
       
    22 #include "prjconfig.h"
       
    23 
       
    24 /**
       
    25  * Custom logging variations.
       
    26  */
       
    27 #ifdef PRJ_FILE_TRACE
       
    28 _LIT(KLogFile,"limitedpdpplugin.txt");
       
    29 _LIT(KLogDir,"LIMITEDPDPPLUGIN");
       
    30 #endif
       
    31 
       
    32 #ifdef PRJ_ENABLE_TRACE
       
    33 _LIT(KTracePrefix16, "[LIMITEDPDPPLUGIN] ");
       
    34 _LIT8(KTracePrefix8, "[LIMITEDPDPPLUGIN] ");
       
    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, "limitedpdpplugin");
       
    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 // LIMITEDPDPPLUGIN_DEBUGCONFIG_H