cleanup logOutput