added methods to clear the log and to set the log max size