From 8dd8ef10765fc1e218852106783daf1954e4895f Mon Sep 17 00:00:00 2001 From: Artur Moczulski Date: Wed, 1 Nov 2017 22:16:03 -0700 Subject: [PATCH] Add a note about Monolog situation --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 85846167..89170d6d 100644 --- a/README.md +++ b/README.md @@ -269,6 +269,8 @@ try { } ``` +*Note:* Currently `PsrHandler` incorrectly reports exception objects logged with `log` method as strings instead of objects. This will cause your `log`-reported errors to be interpretted in Rollbar as message strings. The preferred way to use Rollbar with Monolog is through `RollbarHandler` class, however, at the moment, it's outdated. Pull request [Sync RollbarHandler with the latest changes rollbar/rollbar package](https://github.com/Seldaek/monolog/pull/1042) with a fix is awaiting merging into Monolog package. This issue has been originally brought up in [Log->error($e) has different info than throw the exception and let error_reporting handle it](https://github.com/rollbar/rollbar-php/issues/275). + ## Configuration ### Asynchronous Reporting @@ -640,6 +642,8 @@ $config['person_fn'] = 'get_current_user'; ## Related projects +A range of examples of using Rollbar PHP is available here: [Rollbar PHP Examples](https://github.com/rollbar/rollbar-php-examples). + A Wordpress Plugin is available through Wordpress Admin Panel or through Wordpress Plugin directory: [Rollbar Wordpress](https://wordpress.org/plugins/rollbar/) A Laravel-specific package is available for integrating with Laravel: [Rollbar Laravel](https://github.com/rollbar/rollbar-php-laravel)