Skip to content

Commit 5212efa

Browse files
authored
Prepare 4.15.0 (#1005)
1 parent a47c482 commit 5212efa

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Changelog
22

3+
## 4.15.0
4+
5+
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.15.0.
6+
7+
### Features
8+
9+
- Add support for Sentry Structured Logs [(#1000)](https://github.com/getsentry/sentry-laravel/pull/1000)
10+
11+
12+
To enable this feature, add the `sentry_logs` log channel in your `config/logging.php` configuration:
13+
14+
```php
15+
'channels' => [
16+
...
17+
'sentry' => [
18+
'driver' => 'sentry_logs',
19+
'level' => env('LOG_LEVEL', 'info'),
20+
],
21+
...
22+
],
23+
```
24+
25+
Add `SENTRY_ENABLE_LOGS=true` to your `.env` file.
26+
27+
Use the Log facade to sent your logs to Sentry. To learn more, head over to the [Laravel docs](https://laravel.com/docs/logging).
28+
29+
```php
30+
use use Illuminate\Support\Facades\Log;
31+
32+
Log::driver('sentry')->info('User {id} failed to login.', ['id' => $user->id]);
33+
```
34+
335
## 4.14.1
436

537
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.14.1.

0 commit comments

Comments
 (0)