Improve log viewer