<div dir="ltr">I have a script that runs some automated tests and logs the results to the console. The tests can take 10+ minutes, so logging steps to the console is informative. I'm using Racket to run the script with (system ...) and parse the logs and report pass/failure, but to do that I have to capture the logs. I spent about an hour in the port docs and can't figure out how to both log to the console and capture the logs in Racket for further processing (although I'm really good at missing the obvious).<div>
<br></div><div style>My current workaround is to use the tee command when running the script and then read in and process the file afterwords, but I was wondering if there is a more direct way to do this in Racket.</div>
</div>