'Create log files in galaxy, namely error_file, output_file, exit_code_file
Return true, if all the file creations are successful'

def create_log_file(self, job_state, job_status_god):

    path = None
    for vol in job_status_god['container']['volumes']:
        if (vol['name'] == 'go-docker'):
            path = str(vol['path'])
    if path:
        god_output_file = (path + '/god.log')
        god_error_file = (path + '/god.err')
        try:
            f = open(god_output_file, 'r')
            out_log = f.read()
            log_file = open(job_state.output_file, 'w')
            log_file.write(out_log)
            log_file.close()
            f.close()
            f = open(god_error_file, 'r')
            out_log = f.read()
            log_file = open(job_state.error_file, 'w')
            log_file.write(out_log)
            log_file.close()
            f.close()
            out_log = str(job_status_god['status']['exitcode'])
            log_file = open(job_state.exit_code_file, 'w')
            log_file.write(out_log)
            log_file.close()
            f.close()
            log.debug(('CREATE    OUTPUT    FILE:    ' + str(job_state.output_file)))
            log.debug(('CREATE    ERROR    FILE:    ' + str(job_state.error_file)))
            log.debug(('CREATE    EXIT    CODE    FILE:    ' + str(job_state.exit_code_file)))
        except IOError as e:
            log.error(('Could    not    access    task    log    file    %s' % str(e)))
            log.debug('IO    Error    occurred    when    accessing    the    files.')
            return False
    return True
