public function log($entry, $level = LOG_LEVEL_INFO)
    {
        if (!is_array($entry)) {
            $entry = array('comment' => $entry, 'level' => $level);
        }

        $this->_log->addEntry($entry);

        return $this;
    }
public function log($entry, $level = LOG_LEVEL_INFO)
    {
        if (!is_array($entry)) {
            $entry = array('comment' => $entry, 'level' => $level);
        }

        $this->_log->addEntry($entry);

        return $this;
    }
public function log ( $ entry , $ level = LOG_LEVEL_INFO ) { if ( ! is_array ( $ entry ) ) { $ entry = array ( 'comment' => $ entry , 'level' => $ level ) ; } $ this -> _log -> addEntry ( $ entry ) ; return $ this ; }
Logs an entry.

@param array|string $entry

@see AnLog::addEntry options

@return mixed
Logs an entry .