CStifLogger Class Reference
| class CStifLogger : public CBase |
| Public Member Functions |
|---|
| CStifLogger() |
| ~CStifLogger() |
| IMPORT_C TInt | CreationResult() |
| IMPORT_C TInt | Log(const TDesC &) |
| IMPORT_C TInt | Log(const TDesC8 &) |
| IMPORT_C TInt | Log(TInt, const TDesC &) |
| IMPORT_C TInt | Log(TInt, const TDesC8 &) |
| IMPORT_C TInt | Log(TRefByValue< const TDesC >, ...) |
| IMPORT_C TInt | Log(TRefByValue< const TDesC8 >, ...) |
| IMPORT_C TInt | Log(TInt, TRefByValue< const TDesC >, ...) |
| IMPORT_C TInt | Log(TInt, TRefByValue< const TDesC8 >, ...) |
|
TInt
| Log(const TLitC< S > &) |
|
TInt
| Log(const TLitC8< S > &) |
|
TInt
| Log(TInt, const TLitC< S > &) |
|
TInt
| Log(TInt, const TLitC8< S > &) |
| IMPORT_C CStifLogger * | NewL(const TDesC &, const TDesC &, TLoggerType, TOutput, TBool, TBool, TBool, TBool, TBool, TBool, TInt, TBool) |
| IMPORT_C TOutput | OutputType() |
| IMPORT_C TInt | SaveData(TDesC &) |
| IMPORT_C TInt | SaveData(TDesC8 &) |
|
TInt
| Send(TInt, const TDesC &) |
|
TInt
| Send(TInt, const TDesC8 &) |
| IMPORT_C TInt | WriteDelimiter(const TDesC &, TInt) |
| IMPORT_C TInt | WriteDelimiter(const TDesC8 &, TInt) |
| Protected Member Functions |
|---|
| IMPORT_C CStifLogger * | NewL(const TDesC &, const TDesC &, TLoggerSettings &) |
| void | OverwriteLoggerSettings(TLoggerSettings &, TName &, TName &, TLoggerType &, TOutput &, TBool &, TBool &, TBool &, TBool &, TBool &, TBool &, TBool &) |
| Public Member Enumerations |
|---|
| enum | TLoggerType { ETxt, EData, EHtml } |
| enum | TOutput { EFile, ERDebug } |
| enum | TStyle { ENoStyle = 0x00000, EBold = 0x00001, ECursive = 0x00002, EUnderline = 0x00004, EBlue = 0x00008, EGreen = 0x00010, ERed = 0x00020, EImportant = 0x00040, EWarning = 0x00080, EError = 0x00100 } |
Constructor & Destructor Documentation
Member Functions Documentation
CreationResult()
| IMPORT_C TInt | CreationResult | ( | ) | |
Log(const TDesC &)
Log a 16 bit information to some storage e.g. text file.
Log(const TDesC8 &)
Log a 8 bit information to some storage e.g. text file.
Log(TInt, const TDesC &)
Log a 16 bit information to some storage e.g. text file. There is also parameter to styling text information e.g. text color.
Log(TInt, const TDesC8 &)
Log a 8 bit information to some storage e.g. text file. There is also parameter to styling text information e.g. text color.
Log(TRefByValue< const TDesC >, ...)
Log a 16 bit information to some storage e.g. text file. In this log method may set several parameters.
Log(TRefByValue< const TDesC8 >, ...)
Log a 8 bit information to some storage e.g. text file. In this log method may set several parameters.
Log(TInt, TRefByValue< const TDesC >, ...)
Log a 16 bit information to some storage e.g. text file. There is also parameter to styling text information e.g. text color.
Log(TInt, TRefByValue< const TDesC8 >, ...)
Log a 8 bit information to some storage e.g. text file. There is also parameter to styling text information e.g. text color.
Log(const TLitC< S > &)
Log 16 bit _LIT information to some storage e.g. text file.
Parameters
| const TLitC< S > & aLogInfo | |
Log(const TLitC8< S > &)
Log 8 bit _LIT information to some storage e.g. text file.
Log(TInt, const TLitC< S > &)
Log 16 bit _LIT information to some storage e.g. text file. There is also parameter to styling text information e.g. text color.
Log(TInt, const TLitC8< S > &)
Log 8 bit _LIT information to some storage e.g. text file. There is also parameter to styling text information e.g. text color.
NewL(const TDesC &, const TDesC &, TLoggerType, TOutput, TBool, TBool, TBool, TBool, TBool, TBool, TInt, TBool)
| IMPORT_C CStifLogger * | NewL | ( | const TDesC & | aTestPath, |
| | const TDesC & | aTestFile, |
| | TLoggerType | aLoggerType = ETxt, |
| | TOutput | aOutput = EFile, |
| | TBool | aOverWrite = ETrue, |
| | TBool | aWithTimeStamp = ETrue, |
| | TBool | aWithLineBreak = ETrue, |
| | TBool | aWithEventRanking = EFalse, |
| | TBool | aThreadIdToLogFile = ETrue, |
| | TBool | aCreateLogDir = EFalse, |
| | TInt | aStaticBufferSize = 0, |
| | TBool | aUnicode = EFalse |
| | ) | [static] |
NewL(const TDesC &, const TDesC &, TLoggerSettings &)
Two-phased constructor. TestEngine's and TestServer's are friend. For TestEngine's and TestServer's StifLogger creation.
OutputType()
Get output type. Valid only if CreationResult returns KErrNone.
OverwriteLoggerSettings(TLoggerSettings &, TName &, TName &, TLoggerType &, TOutput &, TBool &, TBool &, TBool &, TBool &, TBool &, TBool &, TBool &)
| void | OverwriteLoggerSettings | ( | TLoggerSettings & | aLoggerSettings, |
| | TName & | aTestPath, |
| | TName & | aTestFile, |
| | TLoggerType & | aLoggerType, |
| | TOutput & | aOutput, |
| | TBool & | aOverWrite, |
| | TBool & | aWithTimeStamp, |
| | TBool & | aWithLineBreak, |
| | TBool & | aWithEventRanking, |
| | TBool & | aThreadIdToLogFile, |
| | TBool & | aCreateLogDir, |
| | TBool & | aUnicode |
| | ) | [protected, static] |
Local CStifLogger's method for StifLogger settings overwriting.
SaveData(TDesC &)
Used when is need to save file or data to storage e.g. web page. 16 bit.
SaveData(TDesC8 &)
Used when is need to save file or data to storage e.g. web page. 8 bit.
Send(TInt, const TDesC &)
Pure virtual. Send style information and data to the output module. 16 bit.
Send(TInt, const TDesC8 &)
Pure virtual. Send style information and data to the output module. 8 bit.
WriteDelimiter(const TDesC &, TInt)
Log a 16 bit delimiter. Default char is '#' and default repeat count is 60. This will be used if parameters are not given when calling this method.
WriteDelimiter(const TDesC8 &, TInt)
Log a 8 bit delimiter. 8 bit delimiter includes no default values. Delimiter may be '#' or 'XO' etc.
Member Enumerations Documentation
Enum TStyle
Enumerators
| ENoStyle = 0x00000 | |
| EBold = 0x00001 | |
| ECursive = 0x00002 | |
| EUnderline = 0x00004 | |
| EBlue = 0x00008 | |
| EGreen = 0x00010 | |
| ERed = 0x00020 | |
| EImportant = 0x00040 | |
| EWarning = 0x00080 | |
| EError = 0x00100 | |
Member Data Documentation
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.