std/log
std/log
Section titled “std/log”std/log — logging convenience helpers. Three thin wrappers around eprint with a level prefix. The output goes to stderr so it interleaves with diagnostic output rather than the program’s actual output stream. Format: “[LEVEL] msg\n”. Migrated from the auto-injected prelude per docs/PRELUDE-TO-MODULES.md. The auto-prelude declares import "std/log"; so existing programs that call log_info(msg) / etc. by bare name keep working unchanged during the transition.
log_info
Section titled “log_info”pub function log_info(msg: string): voidlog_warn
Section titled “log_warn”pub function log_warn(msg: string): voidlog_error
Section titled “log_error”pub function log_error(msg: string): void