|
Crazy Eddies GUI System
0.6.0
|
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...
Inheritance diagram for CEGUI::DefaultLogger:
Collaboration diagram for CEGUI::DefaultLogger:Public Member Functions | |
| DefaultLogger (void) | |
| Constructor for DefaultLogger object. | |
| virtual | ~DefaultLogger (void) |
| Destructor for DefaultLogger object. | |
| virtual void | logEvent (const String &message, LoggingLevel level=Standard) |
| Add an event to the log. More... | |
| virtual void | setLogFilename (const String &filename, bool append=false) |
| Set the name of the log file where all subsequent log entries should be written. More... | |
Public Member Functions inherited from CEGUI::Logger | |
| Logger (void) | |
| Constructor for Logger object. | |
| virtual | ~Logger (void) |
| Destructor for Logger object. | |
| void | setLoggingLevel (LoggingLevel level) |
| Set the level of logging information that will get out to the log file. More... | |
| LoggingLevel | getLoggingLevel (void) const |
| return the current logging level setting More... | |
Protected Attributes | |
| std::ofstream | d_ostream |
| Stream used to implement the logger. | |
|
std::vector< std::pair< String, LoggingLevel > > | d_cache |
| Used to cache log entries before log file is created. | |
| std::ostringstream | d_workstream |
| Used to build log entry strings. | |
| bool | d_caching |
| true while log entries are beign cached (prior to logfile creation) | |
Protected Attributes inherited from CEGUI::Logger | |
| LoggingLevel | d_level |
| Holds current logging level. | |
Additional Inherited Members | |
Static Public Member Functions inherited from CEGUI::Singleton< Logger > | |
| static Logger & | getSingleton (void) |
| static Logger * | getSingletonPtr (void) |
Static Protected Attributes inherited from CEGUI::Singleton< Logger > | |
| 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.
|
virtual |
Add an event to the log.
| 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. |
Implements CEGUI::Logger.
References d_cache, d_caching, CEGUI::Logger::d_level, d_ostream, d_workstream, CEGUI::Errors, CEGUI::Informative, CEGUI::Insane, CEGUI::Standard, and CEGUI::Warnings.
Referenced by DefaultLogger(), and ~DefaultLogger().
|
virtual |
Set the name of the log file where all subsequent log entries should be written.
| filename | Name of the file to put log messages. |
| append |
|
Implements CEGUI::Logger.
References CEGUI::String::c_str(), d_cache, d_caching, CEGUI::Logger::d_level, and d_ostream.
1.8.3.1