liblogger.h File Reference

API published in: S60 3rd Ed FP 2

Link against: liblogger.lib


#include <e32def.h>

Go to the source code of this file.


Defines

#define LOG_BITS   ( ELibTraceTypeCritical | ELibTraceTypeMajor )
#define LOG_FILE_NAME_LINE   __FILE__, __LINE__
#define LIB_TRACE   0 & LibTracerDummy
#define LIB_TRACE_DUMP   0 & LibTracerDummy
#define LIB_TRACE_DUMP_LEN   0 & LibTracerDummy

Typedefs

typedef enum TLibTraceMessageType TLibTraceMessageType

Enumerations

enum  TLibTraceMessageType { ELibTraceTypeInfo = 1, ELibTraceTypeMinor = 2, ELibTraceTypeMajor = 4, ELibTraceTypeCritical = 8 }

Functions

IMPORT_C int LibTracer (TLibTraceMessageType aLogMessageType, char *aFileName, int aLine, char *aFormat,...)
 Message logging interface.
IMPORT_C int LibTracerMarkerList (TLibTraceMessageType aLogMessageType, char *aFileName, int aLine, char *aFormat, VA_LIST *aMarkerList)
 Message logging interface.
IMPORT_C int LibTracerPartialHexDump (TLibTraceMessageType aLogMessageType, char *aFileName, int aLine, char *aMessage, char *aStr, int aStrLen)
 dumping the message in hex format of specific length
IMPORT_C int LibTracerHexDump (TLibTraceMessageType aLogMessageType, char *aFileName, int aLine, char *aMessage, char *aFormat,...)
 dumping the message in hex format
IMPORT_C int LibTracerHexDumpMarkerList (TLibTraceMessageType aLogMessageType, char *aFileName, int aLine, char *aMessage, char *aFormat, VA_LIST *aMarkerList)
 dumping the message in hex format
IMPORT_C int LibLineExecTracer (char *aFileName, int aLine)
 Only logs filename and line no with timestamp.
IMPORT_C int LibMessageTracer (TLibTraceMessageType aLogMessageType, char *aFormat, VA_LIST *aMarkerList)
 Only logging/trace message without timestamp.
IMPORT_C int LibHexDumpMessagePartTracer (TLibTraceMessageType aLogMessageType, char *aMessage, char *aFormat, VA_LIST *aMarkerList)
 Only logging/trace message without timestamp.

Define Documentation

#define LIB_TRACE   0 & LibTracerDummy
 
#define LIB_TRACE_DUMP   0 & LibTracerDummy
 
#define LIB_TRACE_DUMP_LEN   0 & LibTracerDummy
 
#define LOG_BITS   ( ELibTraceTypeCritical | ELibTraceTypeMajor )
 
#define LOG_FILE_NAME_LINE   __FILE__, __LINE__
 

Typedef Documentation

typedef enum TLibTraceMessageType TLibTraceMessageType
 

Enumeration Type Documentation

enum TLibTraceMessageType
 
Enumerator:
ELibTraceTypeInfo 
ELibTraceTypeMinor 
ELibTraceTypeMajor 
ELibTraceTypeCritical 

Function Documentation

IMPORT_C int LibHexDumpMessagePartTracer TLibTraceMessageType  aLogMessageType,
char *  aMessage,
char *  aFormat,
VA_LIST *  aMarkerList
 

Only logging/trace message without timestamp.

Parameters:
aLogMessageType Type of the log message
aMessage pointer to the message as first line
aFormat pointer to the message format
aMarkerList Variable list
Returns:
number to bytes write into the file
IMPORT_C int LibLineExecTracer char *  aFileName,
int  aLine
 

Only logs filename and line no with timestamp.

Parameters:
aFileName pointer to the file name
aLine line number
Returns:
number to bytes write into the file
IMPORT_C int LibMessageTracer TLibTraceMessageType  aLogMessageType,
char *  aFormat,
VA_LIST *  aMarkerList
 

Only logging/trace message without timestamp.

Parameters:
aLogMessageType Type of the log message
aFormat pointer to the message format
aMarkerList Variable list
Returns:
number to bytes write into the file
IMPORT_C int LibTracer TLibTraceMessageType  aLogMessageType,
char *  aFileName,
int  aLine,
char *  aFormat,
  ...
 

Message logging interface.

Parameters:
aLogMessageType Type of the log message
aFileName pointer to the file name
aLine line number
aFormat pointer to the message format ... Variable arguments
Returns:
number to bytes write into the file
IMPORT_C int LibTracerHexDump TLibTraceMessageType  aLogMessageType,
char *  aFileName,
int  aLine,
char *  aMessage,
char *  aFormat,
  ...
 

dumping the message in hex format

Parameters:
aLogMessageType Type of the log message
aFileName pointer to the file name
aLine line number
aMessage pointer to the message as first line
aFormat pointer to the message format ... Variable arguments
Returns:
number to bytes write into the file
IMPORT_C int LibTracerHexDumpMarkerList TLibTraceMessageType  aLogMessageType,
char *  aFileName,
int  aLine,
char *  aMessage,
char *  aFormat,
VA_LIST *  aMarkerList
 

dumping the message in hex format

Parameters:
aLogMessageType Type of the log message
aFileName pointer to the file name
aLine line number
aMessage pointer to the message as first line
aFormat pointer to the message format
aMarkerList Variable list
Returns:
number to bytes write into the file
IMPORT_C int LibTracerMarkerList TLibTraceMessageType  aLogMessageType,
char *  aFileName,
int  aLine,
char *  aFormat,
VA_LIST *  aMarkerList
 

Message logging interface.

Parameters:
aLogMessageType Type of the log message
aFileName pointer to the file name
aLine line number
aFormat pointer to the message format
aMarkerList Variable list
Returns:
number to bytes write into the file
IMPORT_C int LibTracerPartialHexDump TLibTraceMessageType  aLogMessageType,
char *  aFileName,
int  aLine,
char *  aMessage,
char *  aStr,
int  aStrLen
 

dumping the message in hex format of specific length

Parameters:
aLogMessageType Type of the log message
aFileName pointer to the file name
aLine line number
aMessage pointer to the message as first line
aStr Dump string.
aStrLen Dump string length.
Returns:
number to bytes write into the file

Copyright © Nokia Corporation 2001-2008
Back to top