# File log4r/formatter/formatter.rb, line 70 def format_object(obj) if obj.kind_of? Exception return "Caught #{obj.class}: #{obj.message}\n\t" +\ obj.backtrace[0...@depth].join("\n\t") elsif obj.kind_of? String return obj else # inspect the object return "#{obj.class}: #{obj.inspect}" end end