local j=game:GetService("\082\117\110\083\101\114\118\105\099\101")local c={_infoLogEnabled=false,_infoLogAdvancedEnabled=false,_debugEnabled=j:IsStudio()}function c.setDebugLog(c,j)c._debugEnabled=j end function c.setInfoLog(c,j)c._infoLogEnabled=j end function c.setVerboseLog(c,j)c._infoLogAdvancedEnabled=j end function c.i(c,j)if not c._infoLogEnabled then return end local L="\073\110\102\111\047\071\097\109\101\065\110\097\108\121\116\105\099\115\058 "..j print(L)end function c.w(c,j)local L="\087\097\114\110\105\110\103\047\071\097\109\101\065\110\097\108\121\116\105\099\115\058 "..j warn(L)end function c.e(c,j)spawn(function()local c="\069\114\114\111\114\047\071\097\109\101\065\110\097\108\121\116\105\099\115\058 "..j error(c,0)end)end function c.d(c,j)if not c._debugEnabled then return end local L="\068\101\098\117\103\047\071\097\109\101\065\110\097\108\121\116\105\099\115\058 "..j print(L)end function c.ii(c,j)if not c._infoLogAdvancedEnabled then return end local L="\086\101\114\098\111\115\101\047\071\097\109\101\065\110\097\108\121\116\105\099\115\058 "..j print(L)end return c
local RunService = game:GetService("RunService")
--local GameAnalyticsSendMessage

local logger = {
	_infoLogEnabled = false,
	_infoLogAdvancedEnabled = false,
	_debugEnabled = RunService:IsStudio(),
}

function logger:setDebugLog(enabled)
	self._debugEnabled = enabled
end

function logger:setInfoLog(enabled)
	self._infoLogEnabled = enabled
end

function logger:setVerboseLog(enabled)
	self._infoLogAdvancedEnabled = enabled
end

function logger:i(format)
	if not self._infoLogEnabled then
		return
	end

	local m = "Info/GameAnalytics: " .. format
	print(m)
--    GameAnalyticsSendMessage = GameAnalyticsSendMessage or game:GetService("ReplicatedStorage"):WaitForChild("GameAnalyticsSendMessage")
--    GameAnalyticsSendMessage:FireAllClients({
--        Text = m,
--        Font = Enum.Font.Arial,
--        Color = Color3.new(255, 255, 255),
--        FontSize = Enum.FontSize.Size96
--    })
end

function logger:w(format)
	local m = "Warning/GameAnalytics: " .. format
	warn(m)
--    GameAnalyticsSendMessage = GameAnalyticsSendMessage or game:GetService("ReplicatedStorage"):WaitForChild("GameAnalyticsSendMessage")
--    GameAnalyticsSendMessage:FireAllClients({
--        Text = m,
--        Font = Enum.Font.Arial,
--        Color = Color3.new(255, 255, 0),
--        FontSize = Enum.FontSize.Size96
--    })
end

function logger:e(format)
	spawn(function()
		local m = "Error/GameAnalytics: " .. format
		error(m, 0)
--        GameAnalyticsSendMessage = GameAnalyticsSendMessage or game:GetService("ReplicatedStorage"):WaitForChild("GameAnalyticsSendMessage")
--        GameAnalyticsSendMessage:FireAllClients({
--            Text = m,
--            Font = Enum.Font.Arial,
--            Color = Color3.new(255, 0, 0),
--            FontSize = Enum.FontSize.Size96
--        })
	end)
end

function logger:d(format)
	if not self._debugEnabled then
		return
	end

	local m = "Debug/GameAnalytics: " .. format
	print(m)
--    GameAnalyticsSendMessage = GameAnalyticsSendMessage or game:GetService("ReplicatedStorage"):WaitForChild("GameAnalyticsSendMessage")
--    GameAnalyticsSendMessage:FireAllClients({
--        Text = m,
--        Font = Enum.Font.Arial,
--        Color = Color3.new(255, 255, 255),
--        FontSize = Enum.FontSize.Size96
--    })
end

function logger:ii(format)
	if not self._infoLogAdvancedEnabled then
		return
	end

	local m = "Verbose/GameAnalytics: " .. format
	print(m)
--    GameAnalyticsSendMessage = GameAnalyticsSendMessage or game:GetService("ReplicatedStorage"):WaitForChild("GameAnalyticsSendMessage")
--    GameAnalyticsSendMessage:FireAllClients({
--        Text = m,
--        Font = Enum.Font.Arial,
--        Color = Color3.new(255, 255, 255),
--        FontSize = Enum.FontSize.Size96
--    })
end

return logger
