How to Log to a file?

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
markus
Posts: 23
Joined: Tue Mar 01, 2005 9:01 pm
Location: Germany

How to Log to a file?

Post by markus »

Hi all,
is there a simple means to redirect the console output to a file?
Is it possible to set the window position of the console window e.g. have the console on my second monitor, while having the render window on the first one?

Greetings
Markus
Guest

Post by Guest »

Mohaps was working on a full-featured console (including logging to a file),
although I don't know how far he got with that last bit.

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5400
Fingers
Posts: 38
Joined: Thu Feb 10, 2005 10:17 am
Location: South Africa

Simple, crude and nasty redirect ....

Post by Fingers »

If your app is called MyApp, and you want the output in a file called MyApp.log

You could run you app like this

Code: Select all


   C:\MyApp.exe > MyApp.log

This redirects the output of MyApp to a text file MyApp.log.

Please note this redirects EVERYTHING, so If you are asking a question on the console window ... You are NOT going to see it, and you'll think your app has hung ....

( Old method - It doesn't always work on all systems )
Post Reply