local function m(...)local m=topoRuntime.useFrameState()if m.logs==nil then return end local C={}for m=1,select("\035",...),1 do local W=select(m,...)if type(W)=="\116\097\098\108\101"then C[m]=format.formatTable(W)else C[m]=tostring(W)end end table.insert(m.logs,table.concat(C," "))if#m.logs>100 then table.remove(m.logs,1)end return m.deltaTime end return m

local function log(...)
	local state = topoRuntime.useFrameState()

	if state.logs == nil then
		return
	end

	local segments = {}

	for i = 1, select("#", ...) do
		local value = select(i, ...)

		if type(value) == "table" then
			segments[i] = format.formatTable(value)
		else
			segments[i] = tostring(value)
		end
	end

	table.insert(state.logs, table.concat(segments, " "))

	if #state.logs > 100 then
		table.remove(state.logs, 1)
	end

	return state.deltaTime
end

return log
