Default implementation for the Logger class.
If you want to redirect CEGUI logs to some place other than a text file, implement your own Logger implementation and create a object of the Logger type before creating the CEGUI::System singleton.
More...
|
static Logger & | getSingleton (void) |
|
static Logger * | getSingletonPtr (void) |
|
static Logger * | ms_Singleton |
|
Default implementation for the Logger class.
If you want to redirect CEGUI logs to some place other than a text file, implement your own Logger implementation and create a object of the Logger type before creating the CEGUI::System singleton.
Add an event to the log.
- Parameters
-
message | String object containing the message to be added to the event log. |
level | LoggingLevel for this message. If level is greater than the current set logging level, the message is not logged. |
- Returns
- Nothing
Implements CEGUI::Logger.
virtual void CEGUI::DefaultLogger::setLogFilename |
( |
const String & |
filename, |
|
|
bool |
append = false |
|
) |
| |
|
virtual |
Set the name of the log file where all subsequent log entries should be written.
- Note
- When this is called, and the log file is created, any cached log entries are flushed to the log file.
- Parameters
-
filename | Name of the file to put log messages. |
append |
- true if events should be added to the end of the current file.
- false if the current contents of the file should be discarded.
|
Implements CEGUI::Logger.