def zlogger(config, sender):
    from Queue import Queue
    from threading import Thread
    logq = Queue()
    slog = Zero(ZeroSetup('push', 'tcp://%(host)s:%(port)s' % config).nonblocking())

    def thread(slog=slog):
        for t in iter(logq.get, ''):
            slog(t)
    t = Thread(target=thread)
    t.daemon = True
    t.start()
    return ZLogger(config, logq, sender, gethostname())
Returns the string to use in a query when performing regular expression
dataset/ETHPy150Open philipbergen/zero/py/zlog.py/zlogger--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/backends/__init__.py/BaseDatabaseOperations.regex_lookup