maxdemarzi/neography — pull request #140 by karabijavad (2014-01-29 22:12:29+00:00)
Title: one log message per query. log takes a block, and yields a hash which will be also included in the log

example:

log do |extra|
do_my_stuff
extra.merge!({
:my_extra_data => "blah",
})
end
will result in one log message, which has a duration field of how long it took to yield the block, along with the data in extra