Page 1 of 1

Console Window Output

Posted: Thu Mar 20, 2008 6:12 am
by Sachiel7
Hey all, just a quick question to throw out there.
I want to keep my console window, but I don't want Irrlicht to output anything to it anymore. Is there a way to disable console window output without cancelling the window? The alternative may be, is there a standard C++ way to spawn a new/additional console? I could always disable the initial console and setup a second thread with a fresh one... any thoughts?

Posted: Thu Mar 20, 2008 8:19 am
by bitplane
Your user event receiver will receive log events, if you return true in OnEvent for this event type, they won't be sent to the console.

Posted: Thu Mar 20, 2008 1:35 pm
by Acki
you can set the log level...
from the docu:
virtual void irr::ILogger::setLogLevel ( ELOG_LEVEL ll ) [pure virtual]

Sets a new log level. With this value, texts which are sent to the logger are filtered out. For example setting this value to ELL_WARNING, only warnings and errors are printed out. Setting it to ELL_INFORMATION, which is the default setting, warnings, errors and informational texts are printed out.

Parameters:
ll,: new log level filter value.
and:
enum irr::ELOG_LEVEL


Enumeration values:
ELL_INFORMATION High log level, warnings, errors and important information texts are printed out.
ELL_WARNING Default log level, warnings and errors are printed out.
ELL_ERROR Low log level, only errors are printed into the log.
ELL_NONE Nothing is printed out to the log.
so you want to set it to ELL_NONE, I guess... ;)

Posted: Thu Mar 20, 2008 6:46 pm
by Halifax
Wow, you learn a new thing everyday. I have been implementing it how hybrid instructed for basically my whole time with Irrlicht. Never even knew of the setLogLevel() method.

Thanks for that one, Acki.

Posted: Thu Mar 20, 2008 7:11 pm
by hybrid
Eh hybrid? bitplane or what did I say?