New to Ruby I have a simple driver script right now that runs multiple test scripts in other ruby files. I have a method called RunScript() that runs the test scripts. The logger is created as a global variable in the driver script so that the test scripts in other files can use it. The logger logs to a log file in a directory.
What I want to be able to do is capture the logging outputs that happens while the method RunScript() is running only and store it as a String. So basically I want a String of log outputs for each Test Script and keep the log file which stores all the outputs.