cleaning logging