Houdini 20.0 Python scripting hou hou.logging

hou.logging.log HOM function

Send a LogEntry object to all log sinks connected to a logging source.

log(entry, source_name = None)

Sends a hou.logging.LogEntry from a source with the specified source_name.

entry

A hou.logging.LogEntry object which will be sent from the named logging source to all connected sinks. The source attribute of the log entry object will be automatically overridden to use the specified source_name.

source_name

The name of the logging source from which the log entry is sent. Only logging sources compatible with sending python log entries can be used here. If no value is specified, the value is assumed to be Python Logging. Other valid values are Generic Logging, or any value that does not match an existing logging source name. In this case a new logging source is automatically created as if hou.logging.createSource() had been called.

hou.logging