function Logging.warn(C,...)local c=C:format(...)for C in pairs(collectors)do table.insert(C.warnings,c)end local r=(debug.traceback("",2)):sub(2)local O=("\037\115\n\037\115"):format(c,indent(r,1))if outputEnabled then warn(O)end end

function Logging.warn(messageTemplate, ...)
	local message = messageTemplate:format(...)

	for collector in pairs(collectors) do
		table.insert(collector.warnings, message)
	end

	-- debug.traceback inserts a leading newline, so we trim it here
	local trace = debug.traceback("", 2):sub(2)
	local fullMessage = ("%s\n%s"):format(message, indent(trace, 1))

	if outputEnabled then
		warn(fullMessage)
	end
end
