clear all logs function