Bot releases are hidden (Show)
Rollbar upgraded to the latest version (^4.0.2)
Published by baibaratsky almost 2 years ago
Migrated to PHP8
Published by baibaratsky about 3 years ago
Rollbar library version updated to 2.1
Published by baibaratsky almost 5 years ago
Rollbar 1.5+ support. PHP 7.1+, Yii 2.0.15+ required. No backwards compatibility!
Published by baibaratsky over 6 years ago
Fixed #18
Published by baibaratsky over 6 years ago
PHP 7.2 support, Yii 2.0.13+ required
Published by baibaratsky over 6 years ago
Fixed baseApiUrl
(#14)
Published by baibaratsky over 6 years ago
Fixed #10
Published by baibaratsky over 6 years ago
This release causes an error. See #10.
Published by baibaratsky over 6 years ago
Rollbar dependency fixed (to 1.3.*)
This release causes an error. See #10.
Published by baibaratsky over 6 years ago
Rollbar updated
This release causes an error. See #10.
Published by baibaratsky over 6 years ago
Rollbar 1.1 support
Published by baibaratsky almost 8 years ago
enable_utf8_sanitization option support (#6)
Published by baibaratsky almost 8 years ago
Error catching in PHP 7 fixed (issue #5)
Published by baibaratsky over 8 years ago
Published by baibaratsky over 8 years ago
Published by baibaratsky over 8 years ago
Published by baibaratsky over 8 years ago
Now you can just log an exception without exiting from program.
Example:
try {
somethingWrong();
} catch (\Exception $exception) {
Yii::$app->errorHandler->logException($exception);
Published by baibaratsky over 8 years ago
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'];
}
}
Published by baibaratsky over 8 years ago
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(),
];
},
],
],