Removing stderr messages,convert to logger