Is that safety pilot as required by the pilot holding a medical which has such a limitation or a safety pilot which is required by the regulation under which the aircraft is operated.
Two different situations. Two different requirements for logging the flight.
Regards,
DFC