houdini_logging_tools.handlers

houdini_logging_tools.handlers.shellio module

Custom logging stream handler which writes to Houdini Python Shell panels.

class houdini_logging_tools.handlers.shellio.PythonShellHandler(stream=None)[source]

Bases: StreamHandler

Custom stream handler which outputs to the interactive Python shell when it is open.

Houdini will redirect sys.stdout to be an instance of hou.ShellIO when there is a Python Shell panel active and displayed. This handler works by checking that sys.stdout is a hou.ShellIO and writes output to it accordingly. Otherwise, no output will be written.

emit(record: LogRecord) None[source]

Emit a log message.

Parameters:

record – The log record to emit.

houdini_logging_tools.handlers.houdini_logging module

Custom logging stream handler which writes to the Houdini logging API.

class houdini_logging_tools.handlers.houdini_logging.HoudiniLoggingHandler(stream=None)[source]

Bases: StreamHandler

Custom stream handler which outputs to the Houdini logging API.

emit(record: LogRecord) None[source]

Emit a log message.

Parameters:

record – The log record to emit.