Multiple Log files
Hi all,
Is there an easy way to create multiple loggers using the "log" object in opensesame? I use python scripting, and right now the log is automatically initialized and then I can output data to it using the "log.write_vars" function.
My issue is the following: Within an experiment, I would like to give a survey, then run a task, then give another survey. I would like for there to be 3 logs upon completion – 1 for each of the surveys and 1 for the task data. I could of course create csv's and write them out with python functions, but I was wondering if there is another way to do it more conveniently using opensesame's functionality.
Any help would be appreciated!
Best,
Nate
Comments
Hi Nate,
Yes, that's possible. You can create multiple
logobjects that each write to a different. For example like so:Here,
custom_log_1andcustom_log_2are both regularlogobjects as documented here:Does that answer your question?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
Thanks so much for the quick response! And yes, this is exactly what I was looking for. I figured that it could be done in OpenSesame – this will be much cleaner than trying to do it with standard python libraries.
Best,
Nate