Implement initial logging story

(With lots of cool shell tricks!)