Extract logging.lua & registration/environment.lua into ./core_namespace/. Relates to #1
This commit is contained in:
22
core_namespace/logging.lua
Normal file
22
core_namespace/logging.lua
Normal 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
|
||||
Reference in New Issue
Block a user