Hello! I need to disable logging in ogre.log. Is there any way to do
it (version Ogre 1.8.1)?
Disable recording in the Log File
- syedhs
- Silver Sponsor
- Posts: 2703
- Joined: Mon Aug 29, 2005 3:24 pm
- Location: Kuala Lumpur, Malaysia
- x 51
Re: Disable recording in the Log File
Code: Select all
LogManager::getSingleton().setLogDetail(static_cast<LoggingLevel>(0));
A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
-
- Gnoblar
- Posts: 7
- Joined: Wed Dec 11, 2013 1:19 pm
Re: Disable recording in the Log File
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?
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?
- dark_sylinc
- OGRE Team Member
- Posts: 5296
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1278
- Contact:
Re: Disable recording in the Log File
Just pass an empty string when creating Root:
Code: Select all
Ogre::String logFileName = "";
OGRE_NEW Ogre::Root( "plugins.cfg", "ogre.cfg", logFileName );
-
- Gnoblar
- Posts: 7
- Joined: Wed Dec 11, 2013 1:19 pm
Re: Disable recording in the Log File
Thank you so much. Everything works as it should.