def __init__(self, name, filename=None, lognode=None):
        self.prefix = name
        self.log = None
        if filename is not None:
            self.log = open("concoord_log_"+name, 'w')
        if lognode is not None:
            logaddr,logport = lognode.split(':')
            try:
                self.log = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
                self.log.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
                self.log.setsockopt(socket.IPPROTO_TCP,socket.TCP_NODELAY,1)
                self.log.connect((logaddr,int(logport)))
            except __HOLE__:
                self.log = None
                return
dataset/ETHPy150Open denizalti/concoord/concoord/utils.py/Logger.__init__