CDefaultLogOutput Class Reference

class CDefaultLogOutput : public CBase

Comments : Default implementation of the MLogOutput interface. This will be used if an alternative is not supplied at construction of the CTestController .

Inherits from

Constructor & Destructor Documentation

CDefaultLogOutput(const TDesC &)

CDefaultLogOutput ( const TDesC & aTitle ) [explicit]
Intended Usage : Standard constructor
leave
KErrNoMemory
Since
7.0

Parameters

const TDesC & aTitle The title to be used in the log

~CDefaultLogOutput()

~CDefaultLogOutput ( )
Intended Usage : Standard destructor
Since
7.0

Member Functions Documentation

Close()

void Close ( )
Intended Usage : Closes RFileLogger when logging has completed
Since
7.0
Pre-condition
OpenL has previously been called
Post-condition
RFileLogger has been closed and this object can be deleted

OpenL()

void OpenL ( )
Intended Usage : Opens the RFileLogger ready for logging Error Condition : Fails to connect to RFileLogger
leave
RFileLogger::Connect()
Since
7.0
Pre-condition
This object is fully constructed
Post-condition
RFileLogger is opened and ready for logging

Write(const TDesC &)

void Write ( const TDesC & aOutput )
Intended Usage : Outputs the specified message to RFileLogger
Since
7.0
Pre-condition
OpenL has previously been called
Post-condition
The descriptor has been written to RFileLogger

Parameters

const TDesC & aOutput The descriptor to be logged

Member Data Documentation

RFileLogger iFLogger

RFileLogger iFLogger [protected]

Handle to the file logging mechanism for outputting messages

const TDesC & iTitle

const TDesC & iTitle [protected]

The title which is output to the log file