Houdini 20.0 Python scripting hou hou.logging

hou.logging.createSource HOM function

Create a new logging source which can send out log entries generated in python.

createSource(source_name)

Creates a new logging source that can be passed as the source_name argument to the hou.logging.log() method. That method will create new logging sources automatically, but it can be useful to create logging sources before any logs are generated by that source so the user can enable the source in the Log Viewer pane.

source_name

The name for the new logging source. If this name matches any existing source (as returned by hou.logging.sources()), this method does nothing.

hou.logging