I am currently using JobeInABox and was wondering if there was any way to print to the docker/server stdout/stderr?
This is mostly for the purposes of logging particular activities.
It seems like when the template code is run, anything printed to stdout/err is 'redirected' to show up in the 'Got' result column for the coderunner question and is not printed 'serverside' in the regular stdout/stderr.
Ideally, I would like something like this in the custom question template:
{{ STUDENT_ANSWER }} __student_answer__ = """{{ STUDENT_ANSWER | e('py') }}""" SEPARATOR = "#<ab@17943918#@>#"
### SOME CODE ### print_to_server_stdout(MESSAGE) # is there anything that does this?
{% for TEST in TESTCASES %} {{ TEST.testcode }} {% if not loop.last %} print(SEPARATOR) {% endif %} {% endfor %}
If anyone would know of any way to do this, advice would be greatly appreciated.
Thanks