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

    function setDebugLevel(level: "DEBUG" | "INFO" | "WARN" | "ERROR"): void;

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

    设置控制台输出的最低日志级别(此项仅约束控制台输出,不影响外部 sink 接收日志)。

    Parameters

    ParameterTypeDescription
    level"DEBUG" | "INFO" | "WARN" | "ERROR"最低日志级别。

    Returns

    void