Clear logs function