Stash\Item::logException PHP Method

logException() protected method

Logs an exception with the Logger class, if it exists.
protected logException ( string $message, Exception $exception ) : boolean
$message string
$exception Exception
return boolean
    protected function logException($message, $exception)
    {
        if (!isset($this->logger)) {
            return false;
        }
        $this->logger->critical($message, array('exception' => $exception, 'key' => $this->keyString));
        return true;
    }