This repository has been archived on 2025-06-08. You can view files and clone it, but cannot push or open issues or pull requests.
2025-05-25 14:30:16 +07:00

16 lines
333 B
Lua

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
return logging