Modified suppressed logging to allow tests to specify a log parameter if they wish to capture the console output