Abstract class that defines the interface of a logger object for the GUI system.
The default implementation of this interface is the DefaultLogger class; if you want to perform special logging, derive your own class from Logger and initialize a object of that type before you create the CEGUI::System singleton.
More...
Inherits CEGUI::Singleton< Logger >, CEGUI::AllocatedObject< Logger >, CEGUI::Singleton< Logger >, and CEGUI::AllocatedObject< Logger >.
Inherited by CEGUI::DefaultLogger, CEGUI::DefaultLogger, and Logger_wrapper.
Abstract class that defines the interface of a logger object for the GUI system.
The default implementation of this interface is the DefaultLogger class; if you want to perform special logging, derive your own class from Logger and initialize a object of that type before you create the CEGUI::System singleton.
§ getLoggingLevel() [1/2]
return the current logging level setting
- Returns
- One of the LoggingLevel enumerated values specifying the current level of logging
References CEGUI::Standard.
§ getLoggingLevel() [2/2]
return the current logging level setting
- Returns
- One of the LoggingLevel enumerated values specifying the current level of logging
References CEGUI::Standard.
§ logEvent() [1/2]
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
Implemented in CEGUI::DefaultLogger, and CEGUI::DefaultLogger.
§ logEvent() [2/2]
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
Implemented in CEGUI::DefaultLogger, and CEGUI::DefaultLogger.
Referenced by CEGUI::LuaScriptModule::createBindings(), CEGUI::Direct3D9Renderer::createTexture(), CEGUI::WindowManager::createWindow(), CEGUI::LuaScriptModule::destroyBindings(), CEGUI::Direct3D9Renderer::destroyTexture(), CEGUI::OpenGLESRenderer::destroyTexture(), CEGUI::NullRenderer::logTextureCreation(), CEGUI::Direct3D10Renderer::logTextureCreation(), CEGUI::IrrlichtRenderer::logTextureCreation(), CEGUI::Direct3D11Renderer::logTextureCreation(), CEGUI::OpenGLRendererBase::logTextureCreation(), CEGUI::OgreRenderer::logTextureCreation(), CEGUI::NullRenderer::logTextureDestruction(), CEGUI::Direct3D10Renderer::logTextureDestruction(), CEGUI::IrrlichtRenderer::logTextureDestruction(), CEGUI::Direct3D11Renderer::logTextureDestruction(), CEGUI::OpenGLRendererBase::logTextureDestruction(), CEGUI::OgreRenderer::logTextureDestruction(), CEGUI::System::outputLogHeader(), CEGUI::FactoryRegisterer::registerFactory(), CEGUI::MinizipResourceProvider::setArchive(), and CEGUI::System::System().
§ setLogFilename() [1/2]
virtual void CEGUI::Logger::setLogFilename |
( |
const String & |
filename, |
|
|
bool |
append = false |
|
) |
| |
|
pure virtual |
Set the name of the log file where all subsequent log entries should be written. The interpretation of file name may differ depending on the concrete logger implementation.
- 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.
|
Implemented in CEGUI::DefaultLogger, and CEGUI::DefaultLogger.
§ setLogFilename() [2/2]
virtual void CEGUI::Logger::setLogFilename |
( |
const String & |
filename, |
|
|
bool |
append = false |
|
) |
| |
|
pure virtual |
Set the name of the log file where all subsequent log entries should be written. The interpretation of file name may differ depending on the concrete logger implementation.
- 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.
|
Implemented in CEGUI::DefaultLogger, and CEGUI::DefaultLogger.
§ setLoggingLevel() [1/2]
Set the level of logging information that will get out to the log file.
- Parameters
-
level | One of the LoggingLevel enumerated values that specified the level of logging information required. |
- Returns
- Nothing
§ setLoggingLevel() [2/2]
Set the level of logging information that will get out to the log file.
- Parameters
-
level | One of the LoggingLevel enumerated values that specified the level of logging information required. |
- Returns
- Nothing