object serializer for logging (experiment)