Skip to content

Commit

Permalink
document assertLoggedMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Jun 9, 2019
1 parent 4e3f140 commit a9e333c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ Log::stack(['bugsnag', 'sentry'])->assertLogged('critical', function ($message,
});
```

### assertLoggedMessage($level, $message)

```php
Log::assertLoggedMessage('info', 'User registered');

Log::channel('slack')->assertLoggedMessage('alert', 'It is 5pm, go home');

Log::stack(['bugsnag', 'sentry'])->assertLoggedMessage('critical', 'Perform evasive maneuvers');
```

### assertLoggedTimes($level, $times = 1, $callback = null)

```php
Expand Down

0 comments on commit a9e333c

Please sign in to comment.