Stdout Logger Interface

class larpix.logger.stdout_logger.StdoutLogger(filename=None, buffer_length=0, mode='wa', enabled=False)[source]

The StdoutLogger is logger class that acts as a test logger class. All objects are displayed according to their string representation and routed to stdout.

Parameters:
  • buffer_length – how many data messages to hang on to before flushing buffer to stdout
  • mode – how logger file should be opened (not implemented in StdoutLogger)
record(data, direction=0)[source]

Send the specified data to stdout

Parameters:
  • data – list of data to be written to log
  • direction – 0 if packets were sent to ASICs, 1 if packets were received from ASICs. optional, default=0
record_configs(chips)[source]

Print chips configs to stdout

Parameters:chips – list of chips to print
flush()[source]

Flushes any held data