Changing Log Filename
Posted: Tue Jan 13, 2009 02:20
I'm trying to have my own directory where all the logging of my application is set, the same as CEGUI.log. To achieve this I have the following code:
However, a CEGUI.log file is created wherever I execute my program with all the information about the creation of the System, after that, a CEGUI.log is created in the route I wanted. I'd like to avoid the first CEGUI.log. What should I do?
Thanks in advance.
Code: Select all
_CEGUISystem = new CEGUI::System(_ogreCEGUIRenderer);
CEGUI::Logger * log = &CEGUI::Logger::getSingleton();
log->setLogFilename(addOtherRoute("CEGUI.log"));
log->setLoggingLevel(CEGUI::Informative);
However, a CEGUI.log file is created wherever I execute my program with all the information about the creation of the System, after that, a CEGUI.log is created in the route I wanted. I'd like to avoid the first CEGUI.log. What should I do?
Thanks in advance.