Houdini 20.5 Python scripting hou hou.logging

hou.logging.saveLogsToFile HOM function

Save a tuple of LogEntry objects to a file in JSON format.

saveLogsToFile(logs, filepath)

Creates a file containing a JSON representation of a collection of hou.logging.LogEntry objects. This file can be converted back to a tuple of hou.logging.LogEntry objects by calling hou.logging.loadLogsFromFile() with the same filepath.

logs

Iterable object containing hou.Logging.LogEntry objects which are to be saved to disk in a JSON format the preserves all available information from each entry.

filepath

Path to the file on disk where the log entries will be written.

hou.logging