Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

log

Message format

All messages (msg) are serialized to strings and truncated to 100 characters if longer.

The string representation of messages may change with any release; thus, it should not be utilized as input for other programs.

info

function info(msg: any) -> void

Example

log::info("Some useful information!")

warn

function warn(msg: any) -> void

Example

log::warn({ key: "val" })

error

function error(msg: any) -> void

Example

log::error(get_error_msg())