#include <CEGUILogger.h>
Inheritance diagram for CEGUI::Logger:
Public Member Functions | |
Logger (void) | |
Constructor for Logger object. | |
~Logger (void) | |
Destructor for Logger object. | |
void | setLoggingLevel (LoggingLevel level) |
Set the level of logging information that will get out to the log file. | |
LoggingLevel | getLoggingLevel (void) const |
return the current logging level setting | |
void | logEvent (const String &message, LoggingLevel level=Standard) |
Add an event to the log. | |
void | setLogFilename (const String &filename, bool append=false) |
Set the name of the log file where all subsequent log entries should be written. | |
Singleton (void) | |
Static Public Member Functions | |
static Logger & | getSingleton (void) |
Return the singleton Logger object. | |
static Logger * | getSingletonPtr (void) |
Protected Attributes | |
LoggingLevel | d_level |
Holds current logging level. | |
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) | |
Static Protected Attributes | |
static Logger * | ms_Singleton = NULL |
Definition at line 65 of file CEGUILogger.h.
|
Constructor for Logger object.
Definition at line 43 of file CEGUILogger.cpp. References logEvent(). |
|
Destructor for Logger object.
Definition at line 58 of file CEGUILogger.cpp. References d_ostream, and logEvent(). |
|
return the current logging level setting
Definition at line 110 of file CEGUILogger.h. |
|
|
Definition at line 67 of file CEGUISingleton.h. Referenced by CEGUI::System::~System(). |
|
|
Set the name of the log file where all subsequent log entries should be written.
Definition at line 134 of file CEGUILogger.cpp. References CEGUI::String::c_str(), d_cache, d_caching, d_level, and d_ostream. |
|
Set the level of logging information that will get out to the log file.
Definition at line 100 of file CEGUILogger.h. |
|
Definition at line 58 of file CEGUISingleton.h. |
|
Used to cache log entries before log file is created.
Definition at line 151 of file CEGUILogger.h. Referenced by logEvent(), and setLogFilename(). |
|
true while log entries are beign cached (prior to logfile creation)
Definition at line 153 of file CEGUILogger.h. Referenced by logEvent(), and setLogFilename(). |
|
Holds current logging level.
Definition at line 149 of file CEGUILogger.h. Referenced by logEvent(), and setLogFilename(). |
|
Stream used to implement the logger.
Definition at line 150 of file CEGUILogger.h. Referenced by logEvent(), setLogFilename(), and ~Logger(). |
|
Used to build log entry strings.
Definition at line 152 of file CEGUILogger.h. Referenced by logEvent(). |
|
Definition at line 37 of file CEGUILogger.cpp. |