Added log clearing feature