Add some rudimentary logging, with a log viewer