Logger

class pymoa.data_logger.ObjectLogger(**kwargs)

Bases: object

Logger that can hook into a Loggable instance and log all its loggable properties.

add_logged_names(obj: EventDispatcher, logged_names: Iterable[str])

Can’t have prop bound as trigger and as name without trigger (causes dups in SSELogger).

Parameters:
  • obj

  • logged_names

add_trigger_logged_names(obj: EventDispatcher, trigger_names: Iterable[str], logged_names: Iterable[str])

logged_names cannot have events if trigger is not empty.

Can’t have prop bound as trigger and as name without trigger (causes dups in SSELogger).

Parameters:
  • obj

  • trigger_names

  • logged_names

class pymoa.data_logger.SimpleCSVLogger(filename, **kwargs)

Bases: ObjectLogger

Concrete implementation of ObjectLogger that logs to a csv file.

class pymoa.data_logger.SimpleLoggingLogger(separator=',', **kwargs)

Bases: SimpleTerminalLogger

Concrete implementation of ObjectLogger that logs to the python’s logging system.

class pymoa.data_logger.SimpleTerminalLogger(separator=',', **kwargs)

Bases: ObjectLogger

Concrete implementation of ObjectLogger that logs to the terminal by printing.