CLogWrapper Class Reference

class CLogWrapper : public CBase

The log wrapper.

As some UI variants do not use a Log Engine, the log wrapper provides a consistent interface to clients that need to work, without being changed, with multiple UI variants.

The log wrapper is provided in its own DLL, the logwrap.dll.

If a Log Engine is not installed on a phone, the log wrapper creates an instance of the CLogBase class, whose event handling requests complete with KErrNotSupported and whose functions return KErrNotSupported.

If a Log Engine is installed on a phone, the log wrapper creates an instance of the CLogClient class, provided in a separate DLL, the logcli.dll . The CLogClient class derives from CLogBase and provides implementations for the event handling requests and functions.

CLogBase

CLogClient

Inherits from

Constructor & Destructor Documentation

CLogWrapper()

CLogWrapper()[private]

~CLogWrapper()

IMPORT_C~CLogWrapper()

Member Functions Documentation

ClientAvailable()

IMPORT_C TBoolClientAvailable()const

ConstructL(RFs &, TInt)

voidConstructL(RFs &aFs,
TIntaPriority
)[private]

Parameters

RFs & aFs
TInt aPriority

Log()

CLogBase &Log()[inline]

Gets a reference to the Log Engine object.

If the Log Engine is installed, this is a reference to a CLogClient object. If there is no Log Engine, this is a reference to an instance of the Log Engine base class, CLogBase.

CLogClient

NewL(RFs &, TInt)

IMPORT_C CLogWrapper *NewL(RFs &aFs,
TIntaPriority = CActive::EPriorityStandard
)[static]

Parameters

RFs & aFs
TInt aPriority = CActive::EPriorityStandard

Member Data Documentation

CLogBase * iBase

CLogBase *iBase[private]