EventLogger

class negmas.events.EventLogger(file_name: Union[str, pathlib.Path], types: Optional[List[str]] = None)[source]

Bases: negmas.events.EventSink

Logs events to a file

Parameters
  • file_name – Name of the file to save events into

  • types – The types of events to save. If None, all events will be saved

Methods Summary

on_event(event, sender)

reset_timer()

Methods Documentation

on_event(event: negmas.events.Event, sender: negmas.events.EventSource)[source]
reset_timer()[source]