Manuall add a line to the log file in PsychoJS

I’m currently using an external library for part of my experiment, so I would like to be able to manually log whats going on.

I’m not really sure how to do this with JS, but below I’ve written what I think should go where (it doesn’t work, I’ve tried it)

logger = new Core.Logger("DATA") // This comes from the python documentation of different levels of logging

Then where I want to log something I’ve done"message")

This isn’t working. Any advice on how I should set up manual logging instead?



Would setting the text of a text component that isn’t on screen any more get logged?

text_1.text = “Message “