Method: Lumberjack::Device::Couchdb#write

Defined in:
lib/lumberjack/couchdb.rb

#write(entry) ⇒ Object


15
16
17
18
19
# File 'lib/lumberjack/couchdb.rb', line 15

def write(entry)
 hash = entry.instance_variables.mash {|v| [v[1..-1],entry.instance_variable_get(v)]}
 hash[:milisec] = Time.new.to_i
      @db.save_doc(hash)  		
end