WIP: Logs all print statements in the built-in REPL; closes #371.