'Logs the items into the terminal using an event.
:param items: The items to display.
:type items: string
:param is_debug: If True emits event at debug level.
:type is_debug: boolean
:return: Nothing.
:rtype: None'

def print_inv(self, items, is_debug=False):

    if (not is_debug):
        self.emit_event('show_inventory', formatted='{items}', data={'items': items})
    else:
        self.emit_event('show_inventory', sender=self, level='debug', formatted='{items}', data={'items': items})
    self.compute_next_update()
