I have installed splunk to retrieve information from my log files and elert me when specific keyword is found. Is there any way to get possible rails errors so that I can put those as keywords??
+1
A:
You could do this:
exceptions = []
ObjectSpace.each_object(Class) do |o|
exceptions << o if (o < Exception)
end
This will give you a list of all exceptions, but it will be quite large. I get 390 in pure IRB, so there will probably be closer to 5 or 600 if you've required the entire Rails.
Yehuda Katz
2009-07-07 15:23:46
loved it....thanx a ton :)
uzumaki naruto
2009-07-13 11:16:22