public function clearLogHistory($klass = null)
    {
        if (empty($klass))
            $this->history = array();

        if (!isset($this->history[$klass]))
            return;

        $this->history[$klass] = array();
    }
public function clearLogHistory($klass = null)
    {
        if (empty($klass))
            $this->history = array();

        if (!isset($this->history[$klass]))
            return;

        $this->history[$klass] = array();
    }
public function clearLogHistory ( $ klass = null ) { if ( empty ( $ klass ) ) $ this -> history = array ( ) ; if ( ! isset ( $ this -> history [ $ klass ] ) ) return ; $ this -> history [ $ klass ] = array ( ) ; }
This function clears the current array of log message for a particular category.

@param string $klass The category of log messages. If this parameter is ommitted, then all history is cleared.

@return void
This function clears the current array of log message for a particular category .