[Solved] How to disable console logging

Problems building or running the engine, queries about how to use features etc.
Post Reply
odpad
Gnoblar
Posts: 6
Joined: Mon Aug 09, 2021 2:13 pm

[Solved] How to disable console logging

Post by odpad »

Ogre Version: 1.12.12

There is so much debugging info in the console that it's hard to put my own printf's and find them between all those lines.
How can I disable it? I tried How to disable console logging? but I'm using the example from tutorial where I use getRoot() instead of 'new Root()'. I don't know where to put it.
Last edited by odpad on Sun Aug 22, 2021 7:48 pm, edited 1 time in total.
User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 449
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 156

Re: How to disable console logging

Post by sercero »

Hello, the code below would show only critical errors:

Code: Select all

Ogre::LogManager::getSingletonPtr()->setMinLogLevel(Ogre::LML_CRITICAL);
If that is not satisfactory and you want to eliminate all logging as indicated in the thread you referenced, then you need to search your code where new Ogre::Root() is located.
odpad
Gnoblar
Posts: 6
Joined: Mon Aug 09, 2021 2:13 pm

Re: How to disable console logging

Post by odpad »

That reduced the log a lot, thanks. But still I guess I have to find another method of initializing Ogre (different from tutorial).
Post Reply