New serialization stuff for log records