[SOLVED] MyGUI 3.2 disable std output

scrawl

21-03-2012 12:41:56

Hey,

for MyGUI 3.0 we used this method to disable logging to STD output:

viewtopic.php?f=17&t=10304


To remove logging to std output add following code before creating MyGUI::OgrePlatform():

MyGUI::LogManager::initialise();
MyGUI::LogManager::setSTDOutputEnabled(false); // disable std output


However, I see that LogManager::initialise was removed in 3.2. Is there any way to do this in 3.2?

I tried it like this:


mPlatform = new OgrePlatform();
mPlatform->initialise(wnd, mgr, "General", theLogFile);

LogManager::getInstance().setSTDOutputEnabled(logging);

// Create GUI
mGui = new Gui();
mGui->initialise("core.xml");


However, I still have the STD output from initialising of myGUI::OgrePlatform.

Altren

28-03-2012 12:14:44

Do that right after creating OgrePlatform:
mPlatform = new OgrePlatform();
LogManager::getInstance().setSTDOutputEnabled(logging);
mPlatform->initialise(wnd, mgr, "General", theLogFile);

// Create GUI
mGui = new Gui();
mGui->initialise("core.xml");

scrawl

13-04-2012 19:22:23

Sorry for late reply. Your solution works, thanks :D