[solved] debug message spew in console

fpois

30-05-2007 12:22:16

Hi there,

Obviously this is a newbie question, which is really easy to solve for the guys that know how. At the moment when I run anything python-ogre it would generate an 'ogre.log' file AS WELL as outputting pretty much the same stuff in the console. How do I stop it from outputting to the console, while still have the .log file?

andy

31-05-2007 10:29:46

Have a look [b]here[/b]....

fpois

01-06-2007 03:18:26

thanks Andy.

saladin

02-06-2007 07:18:14

Have a look [b]here[/b]....

I did what u said in the tip. It seems to be working at the beginning, no debugging message was output to the console. But later the program returns RuntimeError: unidentifiable C++ exception on my call to the self.renderWindow.addViewport() function.
I believe the logger was the only addition to the code.

Any explanations?

Cheers.

saladin

02-06-2007 07:21:16

Have a look [b]here[/b]....

I did what u said in the tip. It seems to be working at the beginning, no debugging message was output to the console. But later the program returns RuntimeError: unidentifiable C++ exception on my call to the self.renderWindow.addViewport() function.
I believe the logger was the only addition to the code.

Any explanations?

Cheers.


Ok. I found out why myself. The logger needs to be a global variable for this to work. Not declared in any function or class. Otherwise different modules of ogre will have problem accessing it for logging.