<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def logger(self):
 """ Instantiates and returns a ServiceLogger instance """

        if not hasattr(self, '_logger') or not self._logger:
            self._logger = ServiceLogger()
        return self._logger