Page 1 of 1

How to Log to a file?

Posted: Thu Mar 17, 2005 12:20 pm
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

Posted: Tue Mar 22, 2005 11:58 am
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

Simple, crude and nasty redirect ....

Posted: Tue Mar 22, 2005 1:25 pm
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 )