Added the new method clearLog()