pre refactor

This commit is contained in:
2025-11-24 15:48:46 -05:00
parent 84b4487d92
commit e2d31aa734
7 changed files with 71 additions and 6 deletions

19
core/console.lua Normal file
View File

@@ -0,0 +1,19 @@
local M = {}
function M.log(fmt, ...)
print(string.format("[%12f] ", os.clock()) .. string.format(fmt, ...))
end
function M.info(fmt, ...)
print("INFO: " .. string.format(fmt, ...))
end
function M.warn(fmt, ...)
print("WARN: " .. string.format(fmt, ...))
end
function M.error(fmt, ...)
print("ERROR: " .. string.format(fmt, ...))
end
return M