local logging = {} function logging.dump(o) if type(o) == 'table' then local s = '{ ' for k,v in pairs(o) do if type(k) ~= 'number' then k = '"'..k..'"' end s = s .. '['..k..'] = ' .. logging.dump(v) .. ',' end return s .. '} ' else return tostring(o) end end function logging.log(t) -- I am lazy to remove stuff that already exists so i will just leave it here for now @IDK do it for me pls -- local log = io.open("log.log", "a") -- log:write(string.format("\n%s", t)) -- log:flush() -- log:close() end return logging