Is it possible to launch Blender in a mode where everything that appears in the Blender Console is sent to a file?

  • $\begingroup$ That's OK, mods can add the tags that are necessary to your question later. Creating new tags is generally not a good idea, because it makes organization more difficult. $\endgroup$ – CharlesL Feb 10 '14 at 18:41

On Linux/Ubuntu its ./blender > myLog123.txt from the working directory.

./blender &> myLog123.txt to include Stderr.

In Python you can do

import sys
file = open(filepath, "w")
sys.stdout = file
sys.stdout = sys.__stdout__ #reset

to catch the console output while your script is running.

  • 2
    $\begingroup$ Changing sys.stdout in Python apparently catches most of the console output, but not everything. $\endgroup$ – Garrett Feb 10 '14 at 20:23
  • $\begingroup$ Oh that's a very cool / useful approach... will definitively try that! $\endgroup$ – Jeepster Feb 10 '14 at 20:54

On Windows,

  1. Open a command prompt (Windows KeyR, type cmd and hit Enter)
  2. Drag the Blender shortcut or exe onto the prompt
  3. Add > %homepath%\Desktop\blender.log
  4. Hit return to start Blender with all console output redirected to blender.log on your Desktop.

For Mac and Linux, have a look here:


  • $\begingroup$ Thanks CoDEmanX... didn't think of that one, will try too! $\endgroup$ – Jeepster Feb 10 '14 at 20:55

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.