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