src/Error/SentryHandler.php
public function captureMessage($message, $params = [], $data = [], $stack = false, $vars = null)
    {
        if (!Configure::read('CakeMonitor.Sentry.enabled') || error_reporting() === 0) {
            return false;
        }

        if (is_callable(Configure::read('CakeMonitor.Sentry.extraDataCallback'))) {
            $data['extra']['extraDataCallback'] = call_user_func(Configure::read('CakeMonitor.Sentry.extraDataCallback'));
        }

        return $this->_ravenClient->captureMessage($message, $params, $data, $stack, $vars);
    }
public function captureMessage($message, $params = [], $data = [], $stack = false, $vars = null)
    {
        if (!Configure::read('CakeMonitor.Sentry.enabled') || error_reporting() === 0) {
            return false;
        }

        if (is_callable(Configure::read('CakeMonitor.Sentry.extraDataCallback'))) {
            $data['extra']['extraDataCallback'] = call_user_func(Configure::read('CakeMonitor.Sentry.extraDataCallback'));
        }

        return $this->_ravenClient->captureMessage($message, $params, $data, $stack, $vars);
    }
public function captureMessage ( $ message , $ params = [ ] , $ data = [ ] , $ stack = false , $ vars = null ) { if ( ! Configure :: read ( 'CakeMonitor.Sentry.enabled' ) || error_reporting ( ) === 0 ) { return false ; } if ( is_callable ( Configure :: read ( 'CakeMonitor.Sentry.extraDataCallback' ) ) ) { $ data [ 'extra' ] [ 'extraDataCallback' ] = call_user_func ( Configure :: read ( 'CakeMonitor.Sentry.extraDataCallback' ) ) ; } return $ this -> _ravenClient -> captureMessage ( $ message , $ params , $ data , $ stack , $ vars ) ; }
Capture a message via sentry

@param string $message The message (primary description) for the event.
@param array $params params to use when formatting the message.
@param array $data Additional attributes to pass with this event (see Sentry docs).
@param bool $stack Print stack trace
@param null $vars Variables
@return bool
Capture a message via sentry