Initialize modular ATM10 CC control system

This commit is contained in:
2026-07-13 02:46:11 +02:00
commit 5362d31036
28 changed files with 331 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
local M = {}
function M.write(level, message)
local line = ("[%s] %-5s %s"):format(os.date("!%Y-%m-%dT%H:%M:%SZ"), level, tostring(message))
print(line)
local handle = fs.open("runtime/control.log", "a")
if handle then handle.writeLine(line); handle.close() end
end
function M.info(message) M.write("INFO", message) end
function M.warn(message) M.write("WARN", message) end
function M.error(message) M.write("ERROR", message) end
return M