Page 1 of 1

Disable recording in the Log File

Posted: Wed Sep 02, 2015 2:41 pm
by Victor
Hello! I need to disable logging in ogre.log. Is there any way to do
it (version Ogre 1.8.1)?

Re: Disable recording in the Log File

Posted: Wed Sep 02, 2015 2:55 pm
by syedhs

Code: Select all

LogManager::getSingleton().setLogDetail(static_cast<LoggingLevel>(0));

Re: Disable recording in the Log File

Posted: Thu Sep 03, 2015 1:00 pm
by Victor
Where is it necessary to insert?
If you put it in front of Root, the application hangs and if you put it after Root, the file creates.
How can I avoid the creation of a file?

Re: Disable recording in the Log File

Posted: Thu Sep 03, 2015 7:42 pm
by dark_sylinc
Just pass an empty string when creating Root:

Code: Select all

Ogre::String logFileName = "";
OGRE_NEW Ogre::Root( "plugins.cfg", "ogre.cfg", logFileName );

Re: Disable recording in the Log File

Posted: Fri Sep 04, 2015 6:36 pm
by Victor
Thank you so much. Everything works as it should.