Logging to the log file


What’s the correct way to log messages to *.log file?
logging.error/info/exp/debug/log/warning - none of these seem to work. Earlier I did get a version to work when i set the level to critical (but now I don’t recall how i did it). What is the correct approach?

thank you

OS (e.g. Win10): mac osx sierra
PsychoPy version (e.g. 1.84.x): 2020.2.3

never mind i figured this out. The following work : logging.error, exp, warning. I am not sure why the others don’t : info, debug etc. They might not be severe/relevant enough for the level I am set. All good :slight_smile: