Beginning of very simple log storage and viewing before redoing this properly