TLogFormatter Class Reference

class TLogFormatter

Formatting methods for log file data. Migrate to Open System Trace Instrumentation API instead

Constructor & Destructor Documentation

TLogFormatter()

TLogFormatter ( )

TLogFormat class definition Sets iUseDate and iUseTime to ETrue.

Member Functions Documentation

ConvertToWritableBuffer(TDes8 &, TRefByValue< const TDesC16 >, VA_LIST &)

TInt ConvertToWritableBuffer ( TDes8 & aBuf,
TRefByValue < const TDesC16 > aFmt,
VA_LIST & aList
)

Formats string to aBuf

Parameters

TDes8 & aBuf
TRefByValue < const TDesC16 > aFmt
VA_LIST & aList

ConvertToWritableBuffer(TDes8 &, TRefByValue< const TDesC8 >, VA_LIST &)

TInt ConvertToWritableBuffer ( TDes8 & aBuf,
TRefByValue < const TDesC8 > aFmt,
VA_LIST & aList
)

Formats string to aBuf

Parameters

TDes8 & aBuf
TRefByValue < const TDesC8 > aFmt
VA_LIST & aList

FormatTextToWritableBuffer(TDes8 &, const TDesC16 &)

TInt FormatTextToWritableBuffer ( TDes8 & aBuf,
const TDesC16 & aText
) const

Returns result in aBuf

Parameters

TDes8 & aBuf
const TDesC16 & aText

FormatTextToWritableBuffer(TDes8 &, const TDesC8 &)

TInt FormatTextToWritableBuffer ( TDes8 & aBuf,
const TDesC8 & aText
) const

Returns result in aBuf

Parameters

TDes8 & aBuf
const TDesC8 & aText

GetDateAndTimeL(TDes &, TDes &)

void GetDateAndTimeL ( TDes & aDate,
TDes & aTime
) const [private]

Gets date and time according to flags to buffer aBuf

Parameters

TDes & aDate
TDes & aTime

SetDateAndTime(TBool, TBool)

void SetDateAndTime ( TBool aUseDate,
TBool aUseTime
)

Sets whether to use date and/or time

Parameters

TBool aUseDate
TBool aUseTime

WriteL(TDes8 &, const TDesC16 &)

void WriteL ( TDes8 & aTrg,
const TDesC16 & aSrc
) const [private]

Appends date/time as specified and truncate aSrc and convert unprintable characters to '.'. Convert unicode to UTF8 and return the result in aTrg

Parameters

TDes8 & aTrg
const TDesC16 & aSrc

WriteL(TDes8 &, const TDesC8 &)

void WriteL ( TDes8 & aTrg,
const TDesC8 & aSrc
) const [private]

Append date/time as specified and truncate aSrc and convert unprintable characters to '.'.

Parameters

TDes8 & aTrg
const TDesC8 & aSrc

Member Data Documentation

TLogFormatter16Overflow iOverflow16

TLogFormatter16Overflow iOverflow16 [private]

TLogFormatter8Overflow iOverflow8

TLogFormatter8Overflow iOverflow8 [private]

TBool iUseDate

TBool iUseDate [private]

TBool iUseTime

TBool iUseTime [private]