Houdini 20.5 Python scripting hou hou.logging

hou.logging.defaultFileSink HOM function

Return a shared file sink object owned by the current Houdini session.

defaultFileSink() hou.logging.FileSink or None

Every Houdini session can have a single shared hou.logging.FileSink object which is used to log messages generated by the current Houdini session. This function provides access to this shared sink object. If the HOUDINI_DEFAULT_LOG_FILE or HOUDINI_DEFAULT_LOG_FILE_SOURCES environment variables are not set, Houdini will not send its logs to a file, and so this method will return None.

hou.logging