A Bark logging handler logging output to a datagram (UDP) socket.
    The server listening at the given 'host' and 'port' will be sent a
    pickled dictionary.

    Similar to logging.handlers.DatagramHandler.

def datagram_handler(name, logname, host, port):
    """
    A Bark logging handler logging output to a datagram (UDP) socket.
    The server listening at the given 'host' and 'port' will be sent a
    pickled dictionary.

    Similar to logging.handlers.DatagramHandler.
    """

    return wrap_log_handler(logging.handlers.DatagramHandler(host, port))