Hi everyone,
This question has come up a couple of times, so I wanted to raise it here on the forum:
How can we set PyLabRobot to record all firmware commands sent from the running script into a logfile?
i.e. what do you need to modify in the following…
import logging
logger = logging.getLogger("pylabrobot")
logger.setLevel(logging.DEBUG) # <-- choose a level
LOG_LEVEL_IO will log to the standard PLR logger, which is configured as described here
to create a validation file use
pylabrobot.start_capture(validation_file)
per docs
1 Like
Thank you!
Do we have a list of log levels documented somewhere?
this is the only custom one in PLR
other than that we use the default ones
import logging
from pylabrobot.io import LOG_LEVEL_IO
logger = logging.getLogger("pylabrobot")
logger.setLevel(LOG_LEVEL_IO)
2 Likes