method
Log.warn
Log.warn(msg, [key, value]...) -> void
Logs msg at the **warn** level (3) — something is wrong but the game recovered: a missing asset fell back to a placeholder, a value was clamped, a deprecated path was taken. It prints on stderr as [WARN] msg with any structured key=value fields, when the Log.set_level threshold is 3 or lower. Warnings are a good level to keep on in release builds so player bug reports capture them.
Parameters
msgthe message stringExample
program Warn {
entry {
Log.warn("missing texture, using placeholder", "path", "rock.png")
}
}