Logger Class

This class provides methods for interacting with the Eyelink from psychopy.

class logfiler.Logger(subname, suffix, folder='data')[source]

Open logfile and create data folder if needed.

Parameters:
  • subname (str) – Subject identifier.
  • suffix (str) – Experiment identifier.
  • folder (str) – Path to folder to write logfiles. Creates folder if it doesn’t exist
close()[source]

Closes the logfile.

write(tdict)[source]

Writes a row of data to the logfile.

Parameters:tdict (dict) – Dictionary containing information about a trial.