Is there a way to log all the text output from commands in the Msys terminal to a text file when using OSGEO4W in Windows? I'm using GDAL commands and specifically wish to record any error messages that come up.

Any help much appreciated!

  • Have you found a way to do this? I would like to do the following with ogr2ogr commands... – James S Mar 6 '13 at 10:15
  • Unfortunately, this is still something I don't know how to do... – JPD Mar 6 '13 at 17:10

This has helped me get this working:


Its called redirection. I have used

2>> filename.txt

to redirect the error messages to a text file.

I also found that using

--debug ON 

in my ogr calls helped to give more verbose messages in the log file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.