'Get the logs'

def run(self):

    maxLines = 50
    levelsFiltered = u'|'.join([x for x in sickrage.srCore.srLogger.logLevels.keys() if (sickrage.srCore.srLogger.logLevels[x] >= int(sickrage.srCore.srLogger.logLevels[str(self.min_level).upper()]))])
    logRegex = re.compile(u'(?P<entry>^\\d+\\-\\d+\\-\\d+\\s+\\d+\\:\\d+\\:\\d+\\s+(?:{})[\\s\\S]+?(?:{})[\\s\\S]+?$)'.format(levelsFiltered, u''), (re.S + re.M))
    data = []
    try:
        if os.path.isfile(sickrage.srCore.srConfig.LOG_FILE):
            data += list(reversed(re.findall(u'((?:^.+?{}.+?$))'.format(u''), u'\n'.join(next(readFileBuffered(sickrage.srCore.srConfig.LOG_FILE, reverse=True)).splitlines()), ((re.S + re.M) + re.I))))
            maxLines -= len(data)
            if (len(data) == maxLines):
                raise StopIteration
    except StopIteration:
        pass
    except Exception as e:
        pass
    return _responds(RESULT_SUCCESS, u'\n'.join(logRegex.findall(u'\n'.join(data))))
