<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_logger(self):
 """Get the appropriate logger Prevents uninitialized servers in write-only mode from failing. """


        if self.logger:
            return self.logger
        elif self.server:
            return self.server.logger
        else:
            return default_logger