Capture all REPL activity into a file?

Is there a way ? The available docs (Logging, IO, REPL…) are not immediately clear on this. I am on windows/vscode. Thanks!

for reference: