How to write console output to a file?
1427
1
0
-
- raincole
- Member

- 692 posts
- Joined: Aug. 2019
- Online
By default Houdini prints messages to this floating Houdini Console:

However its content doesn't persist forever. When you print more lines, the oldest lines just disappear.
How could I output the console content to a file so I can have a proper log?
(on Windows)
Attachments:
Screenshot 2024-07-14 073056.jpg (98.3 KB)
-
- dtempcyer
- Member

- 326 posts
- Joined: Jan. 2013
- Offline
One option is to use stream redirection from stdout to the file.
houdini -foreground >> output.log
Or errors from stderr to file.
houdini -foreground 1>>output.log 2>&1
edit: here's also a way to just set an environment variable HOUDINI_ERRORLOG_FILENAME and the minimum error level HOUDINI_ERRORLOG_LEVEL.
Edited by dtempcyer - July 14, 2024 04:54:37