Hi all!
How can I disable the CEGUI.log file creation?
I've a read-only filesystem and I can't let my application to write data in the filesystem!
Thank you.
Salvo
How to disable logging?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
Probably the simplest way is to create a custom logger subclass of CEGUI::Logger that does nothing (or whatever else you like). In order that your new logger get used instead of the default one, you must manually instantiate the new logger singleton prior to creating the CEGUI::System object.
HTH
CE.
Probably the simplest way is to create a custom logger subclass of CEGUI::Logger that does nothing (or whatever else you like). In order that your new logger get used instead of the default one, you must manually instantiate the new logger singleton prior to creating the CEGUI::System object.
HTH
CE.
Re: How to disable logging?
Include this code in your source before use CEGUI first time to disable CEGUI.log.
Code: Select all
class NoLogger : public CEGUI::Logger
{
void logEvent (const CEGUI::String&, CEGUI::LoggingLevel)
{
}
void setLogFilename(const CEGUI::String&, bool)
{
}
};
NoLogger nL;
Who is online
Users browsing this forum: No registered users and 12 guests