'Log output from processing the specified file should go to this
location.
:param dag_file_path: file containing a DAG
:type dag_file_path: unicode
:return: the path to the corresponding log file
:rtype: unicode'

def _get_log_file_path(self, dag_file_path):

    log_directory = self._get_log_directory()
    relative_dag_file_path = os.path.relpath(dag_file_path, start=self._dag_directory)
    path_elements = self._split_path(relative_dag_file_path)
    path_elements[(-1)] += u'.log'
    return os.path.join(log_directory, *path_elements)
