Inheritance |
|
This is an abstract base class for all logging sink classes. It provides the common methods for connecting and disconnecting sources to the sink.
Methods ¶
connectedSources()
→ tuple
of str
Returns the names of sources connected to this sink.
connect(source_name)
Connect a source to this sink object. The source_name
should be one of the values return by a call to hou.logging.sources().
disconnect(source_name)
Disconnect a source from this sink object. The source_name
should be one of the values returned by the connectedSources
method.
setFilterCallback(callback)
Associates a callable object with this log sink which is called every time a log entry is generated by a source connected to this sink. The callback should take one argument, which is a hou.logging.LogEntry object. If this callback returns False
, the log entry will not be stored or otherwise processed by this sink object.