Switch to a better log file format.

The new log file format should be somewhat human readable and faster to
parse.