You are here

public function ExtensionAdapter::logException in New Relic 2.x

Same name and namespace in other branches
  1. 8 src/ExtensionAdapter/ExtensionAdapter.php \Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter::logException()
  2. 2.0.x src/ExtensionAdapter/ExtensionAdapter.php \Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter::logException()

Logs an exception.

Parameters

\Exception|\Throwable $exception: The exception.

Overrides NewRelicAdapterInterface::logException

File

src/ExtensionAdapter/ExtensionAdapter.php, line 29

Class

ExtensionAdapter
Default new relic adapter.

Namespace

Drupal\new_relic_rpm\ExtensionAdapter

Code

public function logException($exception) {
  newrelic_notice_error($exception);
}