cryptomgmtlibs/securitytestfw/test/loggertemplate/slogger.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 2001-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 the License "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __SLOGGER_H__
       
    20 #define __SLOGGER_H__
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 #if defined (_DEBUG) && defined (_LOGGING)
       
    25 #define __LOG(X,Y)   SLogger::Log(X,Y, TPtrC8((const TText8 *) __FILE__), __LINE__)
       
    26 #else
       
    27 #define __LOG(X,Y)
       
    28 #endif //defined (_DEBUG) && defined (_LOGGING)
       
    29 
       
    30 class SLogger
       
    31 	{
       
    32  public:
       
    33 	IMPORT_C static void Log(const TDesC& aLogFileName, const TDesC& aString, 
       
    34 		const TDesC8& aSourceFileName, TInt aLineNumber);
       
    35 	IMPORT_C static void Log(const TDesC& aLogFileName, TInt aInt, 
       
    36 		const TDesC8& aSourceFileName, TInt aLineNumber);
       
    37 	};
       
    38 
       
    39 #endif