in clay/logger.py [0:0]
def __init__(self, host, port):
'''
Instantiate a UDPHandler with the intent of connecting to the
given host (string) and port (int)
'''
logging.Handler.__init__(self)
self.host = host
self.port = port
self.sock = None
self.raiseExceptions = 0
self.hostname = socket.gethostname()
if self.hostname.find('.') != -1:
self.hostname = self.hostname.split('.', 1)[0]