add logger to localstorage.js