def METHOD_NAME(address='', port=SYSLOG_PORT,
                  tcp=True, terminate_callable=None):
    if tcp:
        klass = SysLogServerTcp
    else:
        klass = SysLogServerUdp
    syslog = klass((address, port))
    while True:
        if terminate_callable is not None:
            terminate = terminate_callable()
        else:
            terminate = False
        if not terminate:
            syslog.handle_request()