Implemented algorithm to export log.  Refs #6845.
Merge remote branch 'origin/feature/6845_export_log'