PennController().log( name, value )
(since beta 0.3) or newTrial().log( name, value )
since 1.7
You can use the .log
method to add columns to every line corresponding to this trial that is logged in the results file. You can add as many .log
as you want.
Example:
[js highlight=”7,8″ try=”data”]
newTrial(
newButton(“helloworld”, “Hello world!”)
.settings.log()
.print()
.wait()
)
.log(“Trial type”, “One-Button”)
.log(“Text on button”, “Hello world!”);
[/js]
Will add One-Button and Hello world! to the end of every line saved to the results file for this trial.