Improve logging and add summaries (bug #3459)