'Create a new item in the log list'

def _create_item(self, item_state, item_type, item_value, proc_list, proc_desc, peak_time):

    if ((item_state == 'WARNING') or (item_state == 'CRITICAL')):
        self.set_process_sort(item_type)
        item = [time.mktime(datetime.now().timetuple()), (-1), item_state, item_type, item_value, item_value, item_value, item_value, 1, [], proc_desc, glances_processes.sort_key]
        self.logs_list.insert(0, item)
        if (self.len() > self.logs_max):
            self.logs_list.pop()
        return True
    else:
        return False
