Turn off logging in builder

What are you trying to achieve?:
I want to enable only warning and error logs in the runner, using builder.

What did you try to make it work? and what went wrong:
I tried adding this in the “Before experiment” tab of a custom code component:
‘’‘from psychopy import logging’‘’
‘’‘logging.console.setLevel(logging.WARNING)’‘’

However, all logs are still being printed in the runner.

I also tried to change the python script, but the changes are not being saved. I had read in a forum that if you start the experiment using builder, you cannot make changes directly in the python script.

So i wonder how i could fix this using builder.

Hello

go to Edit experiment settings - Data and set the desired logging level in Logging levels.

Best wishes Jens

2 Likes