implement log viewer roughly.