telephonyserverplugins/multimodetsy/Multimode/mSLOGGER.H
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Event Logger for MultiMode TSY
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalAll 
       
    21 */
       
    22 
       
    23 #include <e32std.h>	// for basic Symbian data types
       
    24 
       
    25 #ifndef __MSLOGGER_H__
       
    26 #define __MSLOGGER_H__
       
    27 
       
    28 #ifdef _DEBUG
       
    29 #define __LOGDEB__
       
    30 #else
       
    31 #define __LOGREL__
       
    32 #endif
       
    33 
       
    34 #ifdef	__LOGDEB__
       
    35 #define __LOGREL__
       
    36 #endif
       
    37 
       
    38 #ifdef __LOGDEB__
       
    39 #define LOGTEXT(AAA)				TSYLogger::Write(AAA)
       
    40 #else
       
    41 #define LOGTEXT(AAA)
       
    42 #endif
       
    43 
       
    44 #ifdef __LOGDEB__
       
    45 #define LOGTEXT2(AAA,BBB)			TSYLogger::WriteFormat(AAA,BBB)
       
    46 #else
       
    47 #define LOGTEXT2(AAA,BBB)
       
    48 #endif
       
    49 
       
    50 #ifdef __LOGDEB__
       
    51 #define LOGTEXT3(AAA,BBB,CCC)		TSYLogger::WriteFormat(AAA,BBB,CCC)
       
    52 #else
       
    53 #define LOGTEXT3(AAA,BBB,CCC)
       
    54 #endif
       
    55 
       
    56 #ifdef	__LOGREL__
       
    57 #define LOGTEXTREL(AAA)				TSYLogger::Write(AAA)
       
    58 #else
       
    59 #define LOGTEXTREL(AAA)				
       
    60 #endif
       
    61 
       
    62 #ifdef	__LOGREL__
       
    63 #define LOGTEXTREL2(AAA,BBB)		TSYLogger::WriteFormat(AAA,BBB)
       
    64 #else
       
    65 #define LOGTEXTREL2(AAA,BBB)		
       
    66 #endif
       
    67 
       
    68 #ifdef __LOGREL__
       
    69 #define LOGTEXTREL3(AAA,BBB,CCC)	TSYLogger::WriteFormat(AAA,BBB,CCC)
       
    70 #else
       
    71 #define LOGTEXTREL3(AAA,BBB,CCC)	
       
    72 #endif
       
    73 
       
    74 // TSYLogger
       
    75 // Implements logging.  All static calls.
       
    76 
       
    77 class TSYLogger
       
    78 	{
       
    79 public:
       
    80 	static void Write(const TDesC8& aText);
       
    81 	static void WriteFormat(TRefByValue<const TDesC8> aFmt,...);
       
    82 	};
       
    83 
       
    84 #endif	// __MSLOGGER_H__