RFileFlogger Class Reference

class RFileFlogger
Public Member Functions
RFileFlogger()
~RFileFlogger()
IMPORT_C voidClose()
IMPORT_C TIntConnect()
IMPORT_C TIntCreateLog(const TDesC &, TLogMode)
IMPORT_C voidLog(const TText8 *, TInt, TLogSeverity, TRefByValue< const TDesC >, ...)
IMPORT_C voidLog(const TText8 *, TInt, TLogSeverity, TInt, TExtraLogField *, TRefByValue< const TDesC >, ...)
IMPORT_C voidLog(const TText8 *, TInt, TLogSeverity, TRefByValue< const TDesC >, VA_LIST)
IMPORT_C voidLog(const TText8 *, TInt, TLogSeverity, TInt, TExtraLogField *, TRefByValue< const TDesC >, VA_LIST)
IMPORT_C voidSetLogLevel(TLogSeverity)
Private Member Functions
voidAddTime(TDes8 &)
voidGetCPPModuleName(TDes &, const TText8 *)
voidWriteL(const TDesC &)
voidWriteL(TDes8 &)
Public Member Enumerations
enumTLogCommand { ECreateLog, EWriteLog }
enumTLogMode { ELogModeAppend, ELogModeOverWrite }
enumTLogSeverity {
ESevrErr = 1, ESevrHigh, ESevrWarn, ESevrMedium, ESevrInfo, ESevrLow, ESevrTEFUnit, ESevrAll
}
enumTLogType { EXml, ETxt }
Private Attributes
TBool iLogfileTag
RFileLoggerBody *ilogbody
TLogSeverity iloglevel

Constructor & Destructor Documentation

RFileFlogger()

IMPORT_CRFileFlogger()

Create a new flogger client interface object with an empty body.

~RFileFlogger()

IMPORT_C~RFileFlogger()

Destructor

Member Functions Documentation

AddTime(TDes8 &)

voidAddTime(TDes8 &aTime)[private]

Parameters

TDes8 & aTime

Close()

IMPORT_C voidClose()

Connect()

IMPORT_C TIntConnect()

CreateLog(const TDesC &, TLogMode)

IMPORT_C TIntCreateLog(const TDesC &aLogFilePath,
TLogModeaMode
)

Parameters

const TDesC & aLogFilePath- Full path and filename of the log file
TLogMode aMode- Overwrite or Append Makes synchronous call to the log server to create a log session

GetCPPModuleName(TDes &, const TText8 *)

voidGetCPPModuleName(TDes &aModuleName,
const TText8 *aCPPFileName
)[private]

Parameters

TDes & aModuleName
const TText8 * aCPPFileName

Log(const TText8 *, TInt, TLogSeverity, TRefByValue< const TDesC >, ...)

IMPORT_C voidLog(const TText8 *aFile,
TIntaLine,
TLogSeverityaSeverity,
TRefByValue< const TDesC >aFmt,
...
)

Parameters

const TText8 * aFile- Source file name
TInt aLine- Source file line number
TLogSeverity aSeverity- ERR, WARN, INFO
TRefByValue< const TDesC > aFmt- UNICODE format string
...

Log(const TText8 *, TInt, TLogSeverity, TInt, TExtraLogField *, TRefByValue< const TDesC >, ...)

IMPORT_C voidLog(const TText8 *aFile,
TIntaLine,
TLogSeverityaSeverity,
TIntarraylength,
TExtraLogField *aLogFields,
TRefByValue< const TDesC >aFmt,
...
)

Parameters

const TText8 * aFile- Source file name
TInt aLine- Source file line number
TLogSeverity aSeverity- ERR, WARN, INFO
TInt arraylength
TExtraLogField * aLogFields
TRefByValue< const TDesC > aFmt- UNICODE format string
...

Log(const TText8 *, TInt, TLogSeverity, TRefByValue< const TDesC >, VA_LIST)

IMPORT_C voidLog(const TText8 *aFile,
TIntaLine,
TLogSeverityaSeverity,
TRefByValue< const TDesC >aFmt,
VA_LISTaList
)

Parameters

const TText8 * aFile
TInt aLine
TLogSeverity aSeverity
TRefByValue< const TDesC > aFmt
VA_LIST aList

Log(const TText8 *, TInt, TLogSeverity, TInt, TExtraLogField *, TRefByValue< const TDesC >, VA_LIST)

IMPORT_C voidLog(const TText8 *aFile,
TIntaLine,
TLogSeverityaSeverity,
TIntarraylength,
TExtraLogField *aLogFields,
TRefByValue< const TDesC >aFmt,
VA_LISTaList
)

Format a log output line

Parameters

const TText8 * aFile- Source file name
TInt aLine- Source file line number
TLogSeverity aSeverity- ERR, WARN, INFO
TInt arraylength
TExtraLogField * aLogFields
TRefByValue< const TDesC > aFmt- UNICODE format string
VA_LIST aList- Variable argument list

SetLogLevel(TLogSeverity)

IMPORT_C voidSetLogLevel(TLogSeverityaloglevel)

Parameters

TLogSeverity aloglevel

WriteL(const TDesC &)

voidWriteL(const TDesC &aLogBuffer)[private]

Parameters

const TDesC & aLogBuffer- UNICODE buffer

WriteL(TDes8 &)

voidWriteL(TDes8 &aLogBuffer)[private]

Synchronous write to the server

Parameters

TDes8 & aLogBuffer- pre-formatted narrow buffer

Member Enumerations Documentation

Enum TLogCommand

Enumerators

ECreateLog
EWriteLog

Enum TLogMode

Enumerators

ELogModeAppend
ELogModeOverWrite

Enum TLogSeverity

Enumerators

ESevrErr = 1
ESevrHigh
ESevrWarn
ESevrMedium
ESevrInfo
ESevrLow
ESevrTEFUnit
ESevrAll

Enum TLogType

Enumerators

EXml
ETxt

Member Data Documentation

TBool iLogfileTag

TBool iLogfileTag[private]

RFileLoggerBody * ilogbody

RFileLoggerBody *ilogbody[private]

TLogSeverity iloglevel

TLogSeverity iloglevel[private]