(debug output) records and saves console logs, so that your application can access them.