Help finding scripts throwing errors with LogService

Hello!

I am trying to log scripts within a game that are actively throwing errors. What I am trying to accomplish is if a script has over 100 errors then it logs it. I just need help finding out how to get the exact script with the errors.

local logService = game:GetService("LogService")

local ScriptsWithErrors = {}

logService.MessageOut:Connect(function(message,Type)
	if Type == Enum.MessageType.MessageError then
		
	end
end)