Fork me on GitHub
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

debugout.js  

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.

Install via npm or bower using the package name  debugout.js  or

Download 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);

Get the log at run-time or any time with these methods:

Also, search:

And slice:

Console window:

// Use a method above and output will be displayed here