Is it possible to launch Blender in a mode where everything that appears in the Blender Console is sent to a file?
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 file.close()
to catch the console output while your script is running.
- Open a command prompt (Windows KeyR, type
cmdand hit Enter)
- Drag the Blender shortcut or exe onto the prompt
- Hit return to start Blender with all console output redirected to
blender.logon your Desktop.
For Mac and Linux, have a look here: