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

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

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

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

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

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

@return array Array of strings containing sequential log messages for the given {@link $klass}.
This function returns the current array of log message for a particular category .