Method: Logging::Layouts::CouchDB#format_obj
- Defined in:
- lib/logging/couch_db_layout.rb
#format_obj(obj) ⇒ Object
Take the given value and convert it into a format suitable for use in a JSON object structure.
141 142 143 144 145 146 147 148 149 150 |
# File 'lib/logging/couch_db_layout.rb', line 141 def format_obj( obj ) case obj when nil, Numeric, String, Array, Hash obj when Exception ary = ["<#{obj.class.name}> #{obj.}"] ary.concat(obj.backtrace) unless obj.backtrace.nil? ary else super(obj) end end |