Skip to content

Commit

Permalink
Merge pull request #18 from brianr/patch-1
Browse files Browse the repository at this point in the history
Clarify installation instructions
  • Loading branch information
jenssegers committed Jun 5, 2015
2 parents fbc3c0c + a96a150 commit ca0dea5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Install using composer:

composer require jenssegers/rollbar

Add the service provider in `app/config/app.php`:
Add the service provider to the `'providers'` array in `config/app.php`:

'Jenssegers\Rollbar\RollbarServiceProvider',

Expand All @@ -37,7 +37,7 @@ To automatically monitor exceptions, simply use the `Log` facade in your error h

public function report(Exception $e)
{
Log::error($e);
\Log::error($e);

return parent::report($e);
}
Expand All @@ -51,18 +51,18 @@ For Laravel 4 installations, this is located in `app/start/global.php`:

Your other log messages will also be sent to Rollbar:

Log::debug('Here is some debug information');
\Log::debug('Here is some debug information');

### Context informaton

You can pass user information as context like this:

Log::error('Something went wrong', [
\Log::error('Something went wrong', [
'person' => ['id' => 123, 'username' => 'John Doe', 'email' => '[email protected]']
]);

Or pass some extra information:

Log::warning('Something went wrong', [
\Log::warning('Something went wrong', [
'download_size' => 3432425235
]);

0 comments on commit ca0dea5

Please sign in to comment.