add log viewer script