debugout.js (debug output) generates a text file from your logs that can be searched, timestamped, downloaded and more. See examples and usage on GitHub.
Create a new debugout object and replace all your console logs with debugout's log method:
var bugout = new debugout();
bugout.log('A date:');
bugout.log(d);
bugout.log('An array:');
bugout.log(arr);
bugout.log('A function:');
bugout.log(bugout.objectSize);
bugout.log('A regex');
bugout.log(rgx);
bugout.log('an object with nested objects...');
bugout.log(obj);
bugout.log('an array of objects...');
bugout.log(arrayWithObjects);
// Use a method above and output will be displayed here