RFileFlogger Class Reference
Public Member Functions
|
|
RFileFlogger
()
|
|
~RFileFlogger
()
|
IMPORT_C void
|
Close
()
|
IMPORT_C
TInt
|
Connect
()
|
IMPORT_C
TInt
|
CreateLog
(const
TDesC
&,
TLogMode
)
|
IMPORT_C void
|
Log
(const
TText8
*,
TInt
,
TLogSeverity
,
TRefByValue
< const
TDesC
>, ...)
|
IMPORT_C void
|
Log
(const
TText8
*,
TInt
,
TLogSeverity
,
TInt
,
TExtraLogField
*,
TRefByValue
< const
TDesC
>, ...)
|
IMPORT_C void
|
Log
(const
TText8
*,
TInt
,
TLogSeverity
,
TRefByValue
< const
TDesC
>,
VA_LIST
)
|
IMPORT_C void
|
Log
(const
TText8
*,
TInt
,
TLogSeverity
,
TInt
,
TExtraLogField
*,
TRefByValue
< const
TDesC
>,
VA_LIST
)
|
IMPORT_C void
|
SetLogLevel
(
TLogSeverity
)
|
Public Member Enumerations
|
enum
|
TLogCommand
{
ECreateLog
,
EWriteLog
}
|
enum
|
TLogMode
{
ELogModeAppend
,
ELogModeOverWrite
}
|
enum
|
TLogSeverity
{
ESevrErr
= 1,
ESevrHigh
,
ESevrWarn
,
ESevrMedium
,
ESevrInfo
,
ESevrLow
,
ESevrTEFUnit
,
ESevrAll
}
|
enum
|
TLogType
{
EXml
,
ETxt
}
|
Constructor & Destructor Documentation
RFileFlogger()
IMPORT_C
|
RFileFlogger
|
(
|
)
|
|
Create a new flogger client interface object with an empty body.
~RFileFlogger()
IMPORT_C
|
~RFileFlogger
|
(
|
)
|
|
Member Functions Documentation
AddTime(TDes8 &)
void
|
AddTime
|
(
|
TDes8
&
|
aTime
|
)
|
[private]
|
Connect()
IMPORT_C
TInt
|
Connect
|
(
|
)
|
|
CreateLog(const TDesC &, TLogMode)
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 *)
void
|
GetCPPModuleName
|
(
|
TDes
&
|
aModuleName,
|
|
const
TText8
*
|
aCPPFileName
|
|
)
|
[private]
|
Log(const TText8 *, TInt, TLogSeverity, TRefByValue< const TDesC >, ...)
Log(const TText8 *, TInt, TLogSeverity, TInt, TExtraLogField *, TRefByValue< const TDesC >, ...)
Log(const TText8 *, TInt, TLogSeverity, TRefByValue< const TDesC >, VA_LIST)
Log(const TText8 *, TInt, TLogSeverity, TInt, TExtraLogField *, TRefByValue< const TDesC >, VA_LIST)
SetLogLevel(TLogSeverity)
WriteL(const TDesC &)
void
|
WriteL
|
(
|
const
TDesC
&
|
aLogBuffer
|
)
|
[private]
|
Parameters
const
TDesC
& aLogBuffer
|
- UNICODE buffer
|
WriteL(TDes8 &)
void
|
WriteL
|
(
|
TDes8
&
|
aLogBuffer
|
)
|
[private]
|
Synchronous write to the server
Parameters
TDes8
& aLogBuffer
|
- pre-formatted narrow buffer
|
Member Enumerations Documentation
Enum TLogMode
Enumerators
ELogModeAppend
|
|
ELogModeOverWrite
|
|
Enum TLogSeverity
Enumerators
ESevrErr = 1
|
|
ESevrHigh
|
|
ESevrWarn
|
|
ESevrMedium
|
|
ESevrInfo
|
|
ESevrLow
|
|
ESevrTEFUnit
|
|
ESevrAll
|
|
Member Data Documentation
TBool
iLogfileTag
TBool
|
iLogfileTag
|
[private]
|
RFileLoggerBody * ilogbody
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.