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

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

        return $this->history[$klass];
    }