You are here

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

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

Logs an error message.

Parameters

string $message: The error message.

\Exception|\Throwable $exception: The exception.

Overrides NewRelicAdapterInterface::logError

File

src/ExtensionAdapter/ExtensionAdapter.php, line 36

Class

ExtensionAdapter
Default new relic adapter.

Namespace

Drupal\new_relic_rpm\ExtensionAdapter

Code

public function logError($message, $exception = NULL) {
  newrelic_notice_error($message, $exception);
}