Does a safety pilot log PIC, or SIC?
Yes you can log time as safety pilot where you are taking legal responsibility for maintaining VFR separation during hood practice.  Otherwise it has to be a multi-crew situation by operating rules or due to the aircraft type.  This covers it pretty good.  https://www.aopa.org/training-and-safety/learn-to-fly/logging-cross-country-time/logbooks-and-logging-time