Refactor logViewer

Spenser Shumaker <sshumake@redhat.com>