CoreExtLogConsumer#
- class omni.kit.converter.common.CoreExtLogConsumer(source_ext_name: str)#
Bases:
objectForwards log messages from a Kit subprocess back to the parent process via omni.log.
Kit subprocess stdout lines containing [LEVEL][source] are parsed and re-emitted at the appropriate severity level. This prevents log messages from core extensions (e.g. omni.kit.converter.hoops_core) from being silently dropped when they run inside a child Kit process.
- Two source patterns are matched:
The extension name (with optional submodule path), e.g. [Info] [omni.kit.converter.hoops_core.impl.helper] message
__main__, since error/warn-level omni.log calls in the subprocess script context resolve to __main__ rather than the extension module, e.g. [Error] [__main__] message
Methods
__init__(source_ext_name)process_line(line)Parse a subprocess stdout line and re-emit matching messages via omni.log.
- __init__(source_ext_name: str)#
- Parameters:
source_ext_name – The extension name to filter on (e.g. “omni.kit.converter.hoops_core”).
- process_line(line: str) bool#
Parse a subprocess stdout line and re-emit matching messages via omni.log.
- Parameters:
line – A single decoded stdout line from the Kit subprocess.
- Returns:
True if the line matched and was forwarded, False otherwise.