moved the output log file from showlogs to loging line by line