Updated the clear the log function