You are here

public function BynderException::logException in Bynder 8.3

Same name and namespace in other branches
  1. 8 src/Exception/BynderException.php \Drupal\bynder\Exception\BynderException::logException()
  2. 8.2 src/Exception/BynderException.php \Drupal\bynder\Exception\BynderException::logException()
  3. 4.0.x src/Exception/BynderException.php \Drupal\bynder\Exception\BynderException::logException()

Logs exception into Drupal's log.

Return value

\Drupal\bynder\Exception\BynderException This exception.

File

src/Exception/BynderException.php, line 77

Class

BynderException
Base exception class for Bynder.

Namespace

Drupal\bynder\Exception

Code

public function logException() {
  \Drupal::logger('bynder')
    ->error($this->logMessage, $this->logMessageArgs);
  return $this;
}