Extract logging.lua & registration/environment.lua into ./core_namespace/. Relates to #1

This commit is contained in:
Alexander Chibrikin
2026-01-21 18:57:22 +03:00
parent c82bed2046
commit 3eb0f97115
3 changed files with 147 additions and 123 deletions

View File

@@ -0,0 +1,22 @@
--- Equivalent to `core.log(table.concat({...}, "\t"))`
---
--- Calls `core.log()` with all arguments converted to string and separated by tabs (similar to print).
---
--- @param ... any
function core.debug(...) end
--- @alias LogLevel
--- | "none"
--- | "error"
--- | "warning"
--- | "action"
--- | "info"
--- | "verbose"
--- Logs a message at the specified log level.
---
--- @overload fun(text:string)
--- @param level? LogLevel # [Optional] is one of `"none"`, `"error"`, `"warning"`, `"action"`, `"info"`, or `"verbose"`. Default is `"none"`.
--- @param text string
function core.log(level, text) end