Fix the logging so peter can use it. Also fixed it so loggers are not
stored. Now they are use once and throw away.