How can i hide contact details to the logged out users?

Please clarify what is contact details? Do you mean some custom listing/vendor attribute or something else?