Add method to remove logged messages