跳转到内容

ConsoleLevel

此内容尚不支持你的语言。

ConsoleLevel = "info" | "warn" | "error"

Defined in: runtime/consoleForward.ts:11

consoleForward.ts

Everything a game prints, handed to a listener as well as the console.

wasm print/printErr and the SDK logger both route through console, so wrapping it catches the whole stream — the editor’s Play realm and a development build talking to the editor forward the same lines.