'Get the logs'

def run(self):

    min_level = logger.LOGGING_LEVELS[str(self.min_level).upper()]
    data = []
    if ek(os.path.isfile, logger.log_file):
        with io.open(logger.log_file, u'r', encoding=u'utf-8') as f:
            data = f.readlines()
    regex = u'^(\\d\\d\\d\\d)\\-(\\d\\d)\\-(\\d\\d)\\s*(\\d\\d)\\:(\\d\\d):(\\d\\d)\\s*([A-Z]+)\\s*(.+?)\\s*\\:\\:\\s*(.*)$'
    final_data = []
    num_lines = 0
    last_line = False
    num_to_show = min(50, len(data))
    for x in reversed(data):
        match = re.match(regex, x)
        if match:
            level = match.group(7)
            if (level not in logger.LOGGING_LEVELS):
                last_line = False
                continue
            if (logger.LOGGING_LEVELS[level] >= min_level):
                last_line = True
                final_data.append(x.rstrip(u'\n'))
            else:
                last_line = False
                continue
        elif last_line:
            final_data.append((u'AA' + x))
        num_lines += 1
        if (num_lines >= num_to_show):
            break
    return _responds(RESULT_SUCCESS, final_data)
