Provides output to a debug log on device (E:\debug.log). This slows down performance markedly.
More...
#include <SGEDebugLog.h>
|
| enum | TLogLevel { ENone
, ECritical
, EMajor
, EAll
} |
| |
|
|
|
IMPORT_C | RSGEDebugLog () |
| | Default C++ Constructor.
|
| |
|
|
virtual IMPORT_C | ~RSGEDebugLog () |
| | Destructor.
|
| |
|
| IMPORT_C TInt | Open () |
| | Creates the log file (note this will overwrite any previous instance of the log file). More...
|
| |
|
|
IMPORT_C void | Close () |
| | Closes the debug log file.
|
| |
|
| IMPORT_C TInt | WriteLine (const char *aText, TLogLevel aLevel=EAll) |
| | Writes a line to the debug log file. More...
|
| |
| IMPORT_C TInt | WriteLine (const char *aText, TInt aInt, TLogLevel aLevel=EAll) |
| | Writes a line to the debug log file. More...
|
| |
|
IMPORT_C TInt | WriteLine (const char *aText, TUint32 aHex, TLogLevel aLevel=EAll) |
| |
|
| IMPORT_C TInt | Write (const char *aText, TLogLevel aLevel=EAll) |
| | Writes text to the debug log file. More...
|
| |
| IMPORT_C TInt | Write (const TInt aInt, TLogLevel aLevel=EAll) |
| | Writes integer as a string to the debug log file. More...
|
| |
| IMPORT_C TInt | Write (const TUint32 aHex, TLogLevel aLevel=EAll) |
| | Writes integer as a hex string to the debug log file. More...
|
| |
| IMPORT_C TInt | Write (const TUint8 aHex, TLogLevel aLevel=EAll) |
| | Writes integer as a hex string to the debug log file. More...
|
| |
| IMPORT_C TInt | Write (const char aChar, TLogLevel aLevel=EAll) |
| | Writes character to the debug log file. More...
|
| |
|
IMPORT_C TInt | Write (const TDesC &aDesC, TLogLevel aLevel=EAll) |
| |
|
| IMPORT_C TInt | NewLine (TLogLevel aLevel=EAll) |
| | Writes a newline character to the current position in the debug log file. More...
|
| |
|
|
RFile | iDebugLogFile |
| |
|
RFs | iDebugLogFs |
| |
|
TLogLevel | iLoggingLevel |
| |
| IMPORT_C void | SetLoggingLevel (TLogLevel aLevel) |
| | Determines the minimum priority level required for the entry to be written to the log. More...
|
| |
Provides output to a debug log on device (E:\debug.log). This slows down performance markedly.
◆ NewLine()
| EXPORT_C TInt RSGEDebugLog::NewLine |
( |
TLogLevel |
aLevel = EAll | ) |
|
Writes a newline character to the current position in the debug log file.
- Parameters
-
| aLevel | Priority of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
◆ Open()
| TInt RSGEDebugLog::Open |
( |
| ) |
|
Creates the log file (note this will overwrite any previous instance of the log file).
- Returns
- Any EPOC error code
- Return values
-
◆ SetLoggingLevel()
| EXPORT_C void RSGEDebugLog::SetLoggingLevel |
( |
TLogLevel |
aLevel | ) |
|
Determines the minimum priority level required for the entry to be written to the log.
It is useful if this can be set by a UI component in the game to avoid recompilation of code.
- Parameters
-
| aLevel | Priority of logging - UI allows this to be set |
◆ Write() [1/5]
| EXPORT_C TInt RSGEDebugLog::Write |
( |
const char * |
aText, |
|
|
TLogLevel |
aLevel = EAll |
|
) |
| |
Writes text to the debug log file.
- Parameters
-
| aText | ANSI text to write (can be string literal) |
| aLevel | Priority of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
◆ Write() [2/5]
| EXPORT_C TInt RSGEDebugLog::Write |
( |
const char |
aChar, |
|
|
TLogLevel |
aLevel = EAll |
|
) |
| |
Writes character to the debug log file.
Writes text to the debug log file.
- Parameters
-
| aChar | ANSI character to be written |
| aLevel | Priority of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
- Parameters
-
| aChar | Descriptor containing text to write to the log |
| aLevel | Priority of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
◆ Write() [3/5]
| EXPORT_C TInt RSGEDebugLog::Write |
( |
const TInt |
aInt, |
|
|
TLogLevel |
aLevel = EAll |
|
) |
| |
Writes integer as a string to the debug log file.
- Parameters
-
| aInt | Integer to be written as a string |
| aLevel | Priority of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
◆ Write() [4/5]
| EXPORT_C TInt RSGEDebugLog::Write |
( |
const TUint32 |
aHex, |
|
|
TLogLevel |
aLevel = EAll |
|
) |
| |
Writes integer as a hex string to the debug log file.
- Parameters
-
| aHex | Integer to be written as a hex string |
| aLevel | Priority of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
◆ Write() [5/5]
| EXPORT_C TInt RSGEDebugLog::Write |
( |
const TUint8 |
aHex, |
|
|
TLogLevel |
aLevel = EAll |
|
) |
| |
Writes integer as a hex string to the debug log file.
- Parameters
-
| aHex | Integer to be written as a hex string |
| aLevel | Priority of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
◆ WriteLine() [1/2]
| EXPORT_C TInt RSGEDebugLog::WriteLine |
( |
const char * |
aText, |
|
|
TInt |
aInt, |
|
|
TLogLevel |
aLevel = EAll |
|
) |
| |
Writes a line to the debug log file.
- Parameters
-
| aText | ANSI text to write (can be string literal) |
| Integer | to be written as string at the end of the line |
| Priority | of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
- Parameters
-
| aText | ANSI text to write (can be string literal) |
| Integer | to be written as hex string at the end of the line |
| Priority | of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
◆ WriteLine() [2/2]
| EXPORT_C TInt RSGEDebugLog::WriteLine |
( |
const char * |
aText, |
|
|
TLogLevel |
aLevel = EAll |
|
) |
| |
Writes a line to the debug log file.
- Parameters
-
| aText | ANSI text to write (can be string literal) |
| Priority | of logging - UI allows this to be set |
- Returns
- Any EPOC error code
- Return values
-
The documentation for this class was generated from the following files: