Releases: baibaratsky/yii2-rollbar
Releases · baibaratsky/yii2-rollbar
1.6.1 (don’t use this one)
Rollbar updated
This release causes an error. See #10.
1.6.0
Rollbar 1.1 support
1.5.0
1.4.5
1.4.4
v1.4.4 rollbar/rollbar updated
1.4.3
v1.4.3 rollbar/rollbar updated
1.4.2
v1.4.2 rollbar/rollbar updated
1.4.1
Now you can just log an exception without exiting from program.
Example:
try {
somethingWrong();
} catch (\Exception $exception) {
Yii::$app->errorHandler->logException($exception);
1.4.0
Payload from exceptions
If you want your exceptions to send some additional data to Rollbar,
it is possible by implementing the WithPayload
interface.
use baibaratsky\yii\rollbar\WithPayload;
class SomeException extends \Exception implements WithPayload
{
public function rollbarPayload()
{
return ['foo' => 'bar'];
}
}
1.3.0
You can include additional data in a payload. Put payloadDataCallback
in your errorHandler
config. For example:
'components' => [
'errorHandler' => [
'class' => 'baibaratsky\yii\rollbar\web\ErrorHandler',
'payloadDataCallback' => function (\baibaratsky\yii\rollbar\web\ErrorHandler $errorHandler) {
return [
'exceptionCode' => $errorHandler->exception->getCode(),
'rawRequestBody' => Yii::$app->request->getRawBody(),
];
},
],
],