function hook_raven_breadcrumb_alter in Raven: Sentry Integration 8.2
Same name and namespace in other branches
- 7.4 raven.api.php \hook_raven_breadcrumb_alter()
- 7.2 raven.api.php \hook_raven_breadcrumb_alter()
- 7.3 raven.api.php \hook_raven_breadcrumb_alter()
- 3.x raven.api.php \hook_raven_breadcrumb_alter()
Alter or suppress breadcrumbs before they are recorded.
This hook can be used to alter breadcrumbs before they are recorded. The breadcrumb can be ignored by setting $breadcrumb['process'] to FALSE.
Parameters
array $breadcrumb: The parameters passed to the \Drupal\raven\Logger::log() method, as well as the parameters that will be passed to the \Raven_Breadcrumbs::record() method:
- level: The log level passed to \Drupal\raven\Logger::log().
- message: The log message passed to \Drupal\raven\Logger::log().
- context: The original context array passed to Logger::log().
- breadcrumb: Reference to the array to be passed to \Raven_Breadcrumbs::record().
- process: If FALSE, the breadcrumb will not be recorded.
See also
\Drupal\raven\Logger\Raven::log()
1 invocation of hook_raven_breadcrumb_alter()
- Raven::log in src/
Logger/ Raven.php - Logs with an arbitrary level.
File
- ./
raven.api.php, line 32 - Hooks provided by the Raven module.
Code
function hook_raven_breadcrumb_alter(array &$breadcrumb) {
// Don't record any breadcrumbs.
$breadcrumb['process'] = FALSE;
}