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/type-aliases/DebugSink.md.
  • English
  • Type Alias: DebugSink

    type DebugSink = {
      onLog: void;
    };

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

    调试日志扩展输出目标接口(例如 Sentry 等监控工具可通过此接口接入,无需修改核心分发逻辑)。

    Methods

    onLog()

    onLog(
       level: "DEBUG" | "INFO" | "WARN" | "ERROR", 
       module: string, 
       msg: string, 
       args: unknown[]): void;

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

    Parameters

    ParameterType
    level"DEBUG" | "INFO" | "WARN" | "ERROR"
    modulestring
    msgstring
    argsunknown[]

    Returns

    void