#718: Log protocol type for notices

It would be very helpful if all of the logs started with the
connection tuple to make parsing easier.

We're trying to avoid relying on the order of fields. The recommended
way is to parse the header and then index columns by their names.
While using columns directly would be easier of course, it makes it
hard to change a log's content in the future.

Robin