store logs in localStorage