A Bark logging handler logging output to a named file.

    Similar to logging.FileHandler.

def file_handler(name, logname, filename, mode='a', encoding=None,
                 delay=False):
    """
    A Bark logging handler logging output to a named file.

    Similar to logging.FileHandler.
    """

    return wrap_log_handler(logging.FileHandler(
        filename, mode=mode, encoding=encoding, delay=delay))