'Returns the contents of a task log.
Events that are not task-based do not have logs.'

def get_event_log(self, event_id):

    event_id = str(event_id).replace('..', '').replace('/', '')
    path = ('/var/log/cobbler/tasks/%s.log' % event_id)
    self._log(('getting    log    for    %s' % event_id))
    if os.path.exists(path):
        fh = open(path, 'r')
        data = str(fh.read())
        data = self.translator(data)
        fh.close()
        return data
    else:
        return '?'
