You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
894 B
31 lines
894 B
---@meta
|
|
-- Type stubs for the native `log` module: level-tagged diagnostics on stderr.
|
|
-- Visibility is controlled by RUST_LOG (default: warn and error only).
|
|
-- Arguments are stringified like print and joined with tabs; use
|
|
-- utils.dump(t) to log a table's contents. Reference: docs/log.md
|
|
|
|
log = {}
|
|
|
|
---Very fine-grained, step-by-step detail. Shown with RUST_LOG=trace.
|
|
---@param ... any
|
|
function log.trace(...) end
|
|
|
|
---Developer diagnostics. Shown with RUST_LOG=debug.
|
|
---@param ... any
|
|
function log.debug(...) end
|
|
|
|
---Normal high-level progress. Shown with RUST_LOG=info.
|
|
---@param ... any
|
|
function log.info(...) end
|
|
|
|
---Something unexpected but recoverable. Shown by default.
|
|
---@param ... any
|
|
function log.warn(...) end
|
|
|
|
---Alias of log.warn.
|
|
---@param ... any
|
|
function log.warning(...) end
|
|
|
|
---A failure worth reporting. Shown by default.
|
|
---@param ... any
|
|
function log.error(...) end
|
|
|