logview: code cleanup