Serialize deserialize implemented for log