'Logs the stats into the terminal using an event.
:param stats: The stats to display.
:type stats: string
:return: Nothing.
:rtype: None'

def _log_on_terminal(self, stats):

    self.emit_event('log_hash_stats', formatted='{stats}', data={'stats': stats})
    self._compute_next_update()
