Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (26 sloc) 619 Bytes

logsaver.js

logsaver.js provides the ability to save console.log messages to localStorage.

Start Saving Console Log

startSavingLog();

You can change the localStorage key used.

startSavingLog({keyForLocalStorage:"SOME_NEW_KEY"});

You can also modify the date formatter. Simply specify a new one.

startSavingLog({timestampFormatter:Date.toUTCString});

Stop Saving Console Log

stopSavingLog();

Cleare the Saved Logs

clearSavedLog();

Completely Remove the Saved Log

removeSavedLog();