Location: logfile.h
CLogFile
Class to generate a text file containing logging information.
Defined in CLogFile
:
NewL()
, NewLC()
, ~LogFile()
, Log()
, LogTime()
, LogBytes()
, LogNewLine()
, SetAutoFlush()
, SetAutoTimeStamp()
, SetAutoNewline()
, StaticLogL()
static CLogFile* NewL(const TDesC& aFileName, TBool aInitialiseLog);
Create a CLogFile object.
|
|
static CLogFile* NewLC(const TDesC& aFileName, TBool aInitialiseLog);
Create a CLogFile object.
|
|
~CLogFile();
Destroy the object and release all memory objects.
void Log(TUint8 aByte);
void Log(TUint aNumber);
void Log(const TDesC8& aText);
void Log(const TDesC& aText);
Append the byte to the log file (if not a printable char, it will be logged as ascii-hex).
Append the integer to the log file (logged as ascii-hex).
Append text to the log file.
|
void LogTime();
Append a timestamp to the log file. Timestamps are in seconds with three decimal places (but resolution is limited to system timer tick period)
void LogBytes(const TDesC8& aBuffer);
Append the bytes to the log file (non-printable bytes will be logged as ascii-hex)
|
void SetAutoFlush(TBool aOn);
Turn AutoFlush on or off. AutoFlush will automatically flush the log file after each write.
|
void SetAutoTimeStamp(TBool aOn);
Turn AutoTimeStamp on or off. AutoTimeStamp will add a timestamp to the start of each new line in the log.
|
void SetAutoNewline(TBool aOn);
Turn AutoNewline on or off. AutoNewline starts a new line after each log operation.
|
static void StaticLogL(const TDesC& aFileName, const TDesC8& aText);
static void StaticLogL(const TDesC& aFileName, const TDesC& aText);
Static option to append text to the log file.
|