Add before_format hook.

This hook makes it possible to change the structure of the log. You can see how it could be used here: https://github.com/i0rek/onelinejson/blob/master/lib/onelinejson.rb#L43..L55.