Console Window Output

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Sachiel7
Posts: 21
Joined: Fri Dec 30, 2005 6:24 pm
Location: USA

Console Window Output

Post 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?
-=Sachiel7=-
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post 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.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post 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.
TheQuestion = 2B || !2B
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Eh hybrid? bitplane or what did I say?
Post Reply