RFileLogger Class Reference

class RFileLogger : public RSessionBase

Provides access methods to file logging.

The file logger API contains both static and non-static versions of access functions to the file logging system. Migrate to Open System Trace Instrumentation API instead

Inherits from

Public Member Functions
RFileLogger()
~RFileLogger()
IMPORT_C voidCloseLog()
IMPORT_C TIntConnect()
IMPORT_C voidCreateLog(const TDesC &, const TDesC &, TFileLoggingMode)
IMPORT_C voidHexDump(const TText *, const TText *, const TUint8 *, TInt)
IMPORT_C voidHexDump(const TDesC &, const TDesC &, TFileLoggingMode, const TText *, const TText *, const TUint8 *, TInt)
IMPORT_C TIntLastError()
IMPORT_C TBoolLogSTI()
IMPORT_C TBoolLogValid()
IMPORT_C voidSetDateAndTime(TBool, TBool)
IMPORT_C TVersionVersion()
IMPORT_C voidWrite(const TDesC16 &)
IMPORT_C voidWrite(const TDesC8 &)
IMPORT_C voidWrite(const TDesC &, const TDesC &, TFileLoggingMode, const TDesC16 &)
IMPORT_C voidWrite(const TDesC &, const TDesC &, TFileLoggingMode, const TDesC8 &)
IMPORT_C voidWriteFormat(TRefByValue< const TDesC16 >, ...)
IMPORT_C voidWriteFormat(TRefByValue< const TDesC16 >, VA_LIST &)
IMPORT_C voidWriteFormat(TRefByValue< const TDesC8 >, ...)
IMPORT_C voidWriteFormat(TRefByValue< const TDesC8 >, VA_LIST &)
IMPORT_C voidWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, ...)
IMPORT_C voidWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, VA_LIST &)
IMPORT_C voidWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, ...)
IMPORT_C voidWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, VA_LIST &)
Private Member Functions
TInt DoConnect()
voidDoHexDump(const TText *, const TText *, const TUint8 *, TInt)
voidDoStaticWrite(const TDesC8 &)
voidDoStaticWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, VA_LIST &)
voidDoStaticWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, VA_LIST &)
voidDoWrite(const TDesC8 &)
voidDoWriteFormat(TRefByValue< const TDesC16 >, VA_LIST &)
voidDoWriteFormat(TRefByValue< const TDesC8 >, VA_LIST &)
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
TLogFormatter iFormatter
TInt iLastError
TLogFile iLogFile
TBool iLogSTI
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RFileLogger()

IMPORT_CRFileLogger()

~RFileLogger()

IMPORT_C~RFileLogger()

Member Functions Documentation

CloseLog()

IMPORT_C voidCloseLog()

Connect()

IMPORT_C TIntConnect()

CreateLog(const TDesC &, const TDesC &, TFileLoggingMode)

IMPORT_C voidCreateLog(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode
)

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode

DoConnect()

TInt DoConnect()[private]

DoHexDump(const TText *, const TText *, const TUint8 *, TInt)

voidDoHexDump(const TText *aHeader,
const TText *aMargin,
const TUint8 *aPtr,
TIntaLen
)[private]

Parameters

const TText * aHeader
const TText * aMargin
const TUint8 * aPtr
TInt aLen

DoStaticWrite(const TDesC8 &)

voidDoStaticWrite(const TDesC8 &aBuf)[private]

Parameters

const TDesC8 & aBuf

DoStaticWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, VA_LIST &)

voidDoStaticWriteFormat(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
TRefByValue< const TDesC16 >aFmt,
VA_LIST &aList
)[private, static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
TRefByValue< const TDesC16 > aFmt
VA_LIST & aList

DoStaticWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, VA_LIST &)

voidDoStaticWriteFormat(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
TRefByValue< const TDesC8 >aFmt,
VA_LIST &aList
)[private, static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
TRefByValue< const TDesC8 > aFmt
VA_LIST & aList

DoWrite(const TDesC8 &)

voidDoWrite(const TDesC8 &aBuf)[private]

Parameters

const TDesC8 & aBuf

DoWriteFormat(TRefByValue< const TDesC16 >, VA_LIST &)

voidDoWriteFormat(TRefByValue< const TDesC16 >aFmt,
VA_LIST &aList
)[private]

Parameters

TRefByValue< const TDesC16 > aFmt
VA_LIST & aList

DoWriteFormat(TRefByValue< const TDesC8 >, VA_LIST &)

voidDoWriteFormat(TRefByValue< const TDesC8 >aFmt,
VA_LIST &aList
)[private]

Parameters

TRefByValue< const TDesC8 > aFmt
VA_LIST & aList

HexDump(const TText *, const TText *, const TUint8 *, TInt)

IMPORT_C voidHexDump(const TText *aHeader,
const TText *aMargin,
const TUint8 *aPtr,
TIntaLen
)

Parameters

const TText * aHeader
const TText * aMargin
const TUint8 * aPtr
TInt aLen

HexDump(const TDesC &, const TDesC &, TFileLoggingMode, const TText *, const TText *, const TUint8 *, TInt)

IMPORT_C voidHexDump(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
const TText *aHeader,
const TText *aMargin,
const TUint8 *aPtr,
TIntaLen
)[static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
const TText * aHeader
const TText * aMargin
const TUint8 * aPtr
TInt aLen

LastError()

IMPORT_C TIntLastError()const

LogSTI()

IMPORT_C TBoolLogSTI()const

LogValid()

IMPORT_C TBoolLogValid()const

SetDateAndTime(TBool, TBool)

IMPORT_C voidSetDateAndTime(TBoolaUseDate,
TBoolaUseTime
)

Parameters

TBool aUseDate
TBool aUseTime

Version()

IMPORT_C TVersionVersion()const

Write(const TDesC16 &)

IMPORT_C voidWrite(const TDesC16 &aText)

Parameters

const TDesC16 & aText

Write(const TDesC8 &)

IMPORT_C voidWrite(const TDesC8 &aText)

Parameters

const TDesC8 & aText

Write(const TDesC &, const TDesC &, TFileLoggingMode, const TDesC16 &)

IMPORT_C voidWrite(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
const TDesC16 &aText
)[static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
const TDesC16 & aText

Write(const TDesC &, const TDesC &, TFileLoggingMode, const TDesC8 &)

IMPORT_C voidWrite(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
const TDesC8 &aText
)[static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
const TDesC8 & aText

WriteFormat(TRefByValue< const TDesC16 >, ...)

IMPORT_C voidWriteFormat(TRefByValue< const TDesC16 >aFmt,
...
)

Parameters

TRefByValue< const TDesC16 > aFmt
...

WriteFormat(TRefByValue< const TDesC16 >, VA_LIST &)

IMPORT_C voidWriteFormat(TRefByValue< const TDesC16 >aFmt,
VA_LIST &aList
)

Parameters

TRefByValue< const TDesC16 > aFmt
VA_LIST & aList

WriteFormat(TRefByValue< const TDesC8 >, ...)

IMPORT_C voidWriteFormat(TRefByValue< const TDesC8 >aFmt,
...
)

Parameters

TRefByValue< const TDesC8 > aFmt
...

WriteFormat(TRefByValue< const TDesC8 >, VA_LIST &)

IMPORT_C voidWriteFormat(TRefByValue< const TDesC8 >aFmt,
VA_LIST &aList
)

Parameters

TRefByValue< const TDesC8 > aFmt
VA_LIST & aList

WriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, ...)

IMPORT_C voidWriteFormat(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
TRefByValue< const TDesC16 >aFmt,
...
)[static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
TRefByValue< const TDesC16 > aFmt
...

WriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, VA_LIST &)

IMPORT_C voidWriteFormat(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
TRefByValue< const TDesC16 >aFmt,
VA_LIST &aList
)[static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
TRefByValue< const TDesC16 > aFmt
VA_LIST & aList

WriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, ...)

IMPORT_C voidWriteFormat(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
TRefByValue< const TDesC8 >aFmt,
...
)[static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
TRefByValue< const TDesC8 > aFmt
...

WriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, VA_LIST &)

IMPORT_C voidWriteFormat(const TDesC &aDir,
const TDesC &aName,
TFileLoggingModeaMode,
TRefByValue< const TDesC8 >aFmt,
VA_LIST &aList
)[static]

Parameters

const TDesC & aDir
const TDesC & aName
TFileLoggingMode aMode
TRefByValue< const TDesC8 > aFmt
VA_LIST & aList

Member Data Documentation

TLogFormatter iFormatter

TLogFormatter iFormatter[private]

TInt iLastError

TInt iLastError[private]

TLogFile iLogFile

TLogFile iLogFile[private]

TBool iLogSTI

TBool iLogSTI[private]