def log_list(self, list_, level='INFO'):
        print '*%s* ' % level.upper(),
        if len(list_) == 0:
            print 'List is empty'
        elif len(list_) == 1:
            print 'List has one item:\n%s' % list_[0]
        else:
            print 'List length is %d and it contains following items:' \
                % len(list_)
            for index, item in enumerate(list_):
                print '%s: %s' % (index, item)
Logs the length and contents of the `list` using given `level`.
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/Collections.py/_List.log_list