A Bark logging handler logging output to a named file.  If the
    file has changed since the last log message was written, it will
    be closed and reopened.

    Similar to logging.handlers.WatchedFileHandler.

def watched_file_handler(name, logname, filename, mode='a', encoding=None,
                         delay=False):
    """
    A Bark logging handler logging output to a named file.  If the
    file has changed since the last log message was written, it will
    be closed and reopened.

    Similar to logging.handlers.WatchedFileHandler.
    """

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