clean and change the log messages