'åloggeræ³šå'

def registerToLoggerForWeb(self, uid, components_check, logtype, globalOrder, groupOrder, searchDate, keystr):

    msg = Define.BytesIO()
    d1 = str(len(searchDate.encode()))
    d2 = str(len(keystr.encode()))
    msg.write(struct.pack('=H', Logger_registerLogWatcher))
    msg.write(struct.pack('=H', ((struct.calcsize((('=iIiiccB' + ('i' * Define.COMPONENT_END_TYPE)) + 'BB')) + len(searchDate.encode())) + len(keystr.encode()))))
    msg.write(struct.pack('=i', uid))
    msg.write(struct.pack('=I', logtype))
    msg.write(struct.pack((((('=ii' + d1) + 'sc') + d2) + 'sc'), globalOrder, groupOrder, searchDate.encode(), '\x00'.encode(), keystr.encode(), '\x00'.encode()))
    msg.write(struct.pack('=B', Define.COMPONENT_END_TYPE))
    msg.write(struct.pack(('=' + ('i' * Define.COMPONENT_END_TYPE)), *list(list(components_check))))
    msg.write(struct.pack('=BB', 0, 1))
    self.socket.sendall(msg.getvalue())
