forked from Apancore.Studio/simple-makes-complex
Logger: create logger mod, add base infoLog() method
This commit is contained in:
9
mods/API/Logger/init.lua
Normal file
9
mods/API/Logger/init.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
Logger = {}
|
||||
|
||||
---@param text string
|
||||
---@param ... any
|
||||
function Logger.infoLog(text, ...)
|
||||
text = core.colorize('#00BFFF', '[SMC] '..text:format(...))
|
||||
|
||||
core.log('info', text)
|
||||
end
|
||||
1
mods/API/Logger/mod.conf
Normal file
1
mods/API/Logger/mod.conf
Normal file
@@ -0,0 +1 @@
|
||||
name = smc__api__logger
|
||||
Reference in New Issue
Block a user