Houdini 20.5 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. If no source_name is provided, or it is an empty string, then the source set on the log entry is used. If that source name is also not set, then the default source name of Python Logging is used.

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