Improve logging to work better when logging everything.