kedro.logging.RichHandler¶
- class kedro.logging.RichHandler(*args, **kwargs)[source]¶
与rich的日志处理程序相同,但增加了一些额外功能: * 由warnings模块发出的警告会被重定向到日志记录 * 在Python REPL(包括IPython和Jupyter)中启用漂亮的打印显示 * 当rich_tracebacks=True时,所有回溯都由rich处理 * 构造函数的参数会被映射并传递给rich.traceback.install
The list of available options of
RichHandlercan be found here: https://rich.readthedocs.io/en/stable/reference/logging.html#rich.logging.RichHandlerThe list of available options of rich.traceback.install can be found here: https://rich.readthedocs.io/en/stable/reference/traceback.html#rich.traceback.install