def _get_address()

in ulogger/syslog.py [0:0]


    def _get_address(self, address):
        if address:
            if not isinstance(address, str):
                if len(address) == 2:
                    if address[1] is None:
                        address = (address[0], logging.handlers.SYSLOG_UDP_PORT)
                    else:
                        address = (address[0], int(address[1]))
            return address

        address = {
            'default': '/dev/log',
            'darwin': '/var/run/syslog',
            'remote': (os.environ.get('SYSLOG_HOST'),
                       os.environ.get('SYSLOG_PORT',
                                      logging.handlers.SYSLOG_UDP_PORT))
        }[self._environ]
        if self._environ == 'remote':
            return (address[0], int(address[1]))
        return address