For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/reference/sdk/sapi/runtime/functions/addDebugSink.md.
  • English
  • Function: addDebugSink()

    function addDebugSink(sink: DebugSink): void;

    Defined in: sapi/runtime/debug-log.ts:50

    注册自定义日志接收器(sink);同一引用只会注册一次。

    Parameters

    ParameterTypeDescription
    sinkDebugSink实现了 DebugSink 接口的对象。

    Returns

    void