Update contrib.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Contained MRT library code tracing macros and class definition.
19 #ifndef LIB_LOGGER_HANDLER_H
20 #define LIB_LOGGER_HANDLER_H
24 #include "liblogger.h"
26 // FORWARD DECLARATIONS
30 // FORWARD DECLARATIONS
32 * Here, we are providing all utility functions that will be
33 * used by all modules. We are expecting that all codes specific
34 * to symbian will use active object for asynchronous handling
35 * of all their functionalities. In case of thread provide
36 * synchnorization for accessing the shared objects.
39 NONSHARABLE_CLASS ( CLibLogger )
43 * create one session with file server
45 static int CreateFileSession(RFs &aFsSession, RFile &aFile);
48 * create one session with file server
50 static void GetLogFilename(TDes& aFileName);
53 * Write message to the log file
55 static TInt WriteMessage(const TDesC8& aMessage);
62 /* all the methods within this class are public and static. */
67 * Message logging interface
69 static int LogMessage(TLibTraceMessageType aLogMessageType,
73 VA_LIST& aMarkerList);
76 * Only filename and line number with timestamp.
78 static int LogMessage(char *aFileName, int aLine);
81 * Only message without timestamp
83 static int LogMessage(TLibTraceMessageType aLogMessageType,
85 VA_LIST& aMarkerList);
88 * dumping the message in hex format
90 static int DumpMessage(TLibTraceMessageType aLogMessageType,
98 * dumping the message in hex format
100 static int DumpMessage(char *aStr, int aStrLen);
103 * dumping the message in hex format
105 static int DumpFormatMessage(TLibTraceMessageType aLogMessageType,
110 VA_LIST& aMarkerList);
112 * dumping the message in hex format
114 static int DumpFormatMessage(TLibTraceMessageType aLogMessageType,
117 VA_LIST& aMarkerList);
120 #endif //LIBC_LOGGER_HANDLER_H