Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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. – CharlesL Feb 10 '14 at 18:41
up vote 7 down vote accepted

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.

share|improve this answer
Changing sys.stdout in Python apparently catches most of the console output, but not everything. – Garrett Feb 10 '14 at 20:23
Oh that's a very cool / useful approach... will definitively try that! – 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:

share|improve this answer
Thanks CoDEmanX... didn't think of that one, will try too! – Jeepster Feb 10 '14 at 20:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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