Log all output to HDF5

re-jig log code to log everything to the HDF5